We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
add unsafe declaration for coroutine creation since it will trigger undefined behavior if user's code
unsafe
ref #6
this would break current test and usage.
The text was updated successfully, but these errors were encountered:
🔥 change coroutine spawn method to unsafe (#8)
c73d578
- add `go!` macro for convenient usage - update all related test - update comment docs
🔥 change scoped and cqueue spawn to unsafe (#8)
e2312d5
- update go! macro to support these new invoke - update tests accordingly
I introduce a go!() macro to avoid writing the unsafe block code, which is a little convenient.
go!()
macro_rules! go { ($func: expr) => { ... }; ($builder: expr, $func: expr) => { ... }; ($cqueue: expr, $token: expr, $func: expr) => { ... }; }
this macro is just a convenient wrapper for spawn. However the supplied coroutine block is not wrapped in unsafe block
Sorry, something went wrong.
No branches or pull requests
add
unsafe
declaration for coroutine creation since it will trigger undefined behavior if user's coderef #6
this would break current test and usage.
The text was updated successfully, but these errors were encountered: