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
Send + Sync
@Sendable
Clang has bindings for Swift's @Sendable protocol on blocks (with the default being non-sendable), we should add support for this into block2.
block2
Basic idea is to allow Block<dyn Fn() + Send + Sync>, though since we don't have custom coercions yet, it likely won't be as pretty as through Deref.
Block<dyn Fn() + Send + Sync>
Deref
Notes in this comment on whether we should have both Send + Sync, or if we can get away with one of those bounds.
The text was updated successfully, but these errors were encountered:
FnMut
No branches or pull requests
Clang has bindings for Swift's
@Sendable
protocol on blocks (with the default being non-sendable), we should add support for this intoblock2
.Basic idea is to allow
Block<dyn Fn() + Send + Sync>
, though since we don't have custom coercions yet, it likely won't be as pretty as throughDeref
.Notes in this comment on whether we should have both
Send + Sync
, or if we can get away with one of those bounds.The text was updated successfully, but these errors were encountered: