-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting result from coroutines #47
Comments
Then, what's the return type of If the parent and its children are not running in the same thread, then the return result must be transferred from this thread to another thread. This is also an obstacle of implementing #48 . |
Hmm, good catch. Then, this issue seems like a subset of #48. |
With #68 it's possible: let mut coro = Coroutine::spawn(move |me,_| {
42
});
let result = coro.resume(0); We haven't return types larger than I think this issue should be closed. |
You are right. |
Hi!
Are you planning to add an ability to extract results from finished coroutines, like it is implemented in Thread?
Something like this:
The text was updated successfully, but these errors were encountered: