forked from nim-lang/Nim
-
Notifications
You must be signed in to change notification settings - Fork 0
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
misc channels #657
Comments
so that it's easy to migrate back and forth bw std/channels and system/channels_builtin let dest = chan.recv() |
functionally equivalent to: block:
var dst: T
while true:
if not tryRecv(chan, dst): break or (maybe less efficient?) while true:
var dst: T
if not tryRecv(chan, dst): break (need to ensure it's as efficient as possible and doesn't leak, ie destructors for isolate data should be called on each received item) |
|
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/cc @xflywind
links
The text was updated successfully, but these errors were encountered: