Guest User

Untitled

a guest
Jan 17th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. function complicated(x)
  2. # long and complicated computation
  3. x^2
  4. end
  5.  
  6. function run()
  7. results = []
  8. for i in 1:4
  9. push!(results, @spawn complicated(3))
  10. end
  11. return mean(results)
  12. end
Add Comment
Please, Sign In to add comment