Guest User

Untitled

a guest
Aug 20th, 2019
68
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. futures = [@spawn myfunction(mydata)]
  2. while true
  3. i = findnext(data_available, futures, 1)
  4. if i != nothing
  5. result = fetch(i)
  6. foreach(kill_task, futures)
  7. break
  8. end
  9. sleep(0.1)
  10. end
RAW Paste Data