Replies: 1 comment 2 replies
-
I have often wanted a variant of We wont add it to |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In quite a few projects, I found myself repeating the same pattern of an
Event
primitive, implemented like this:This
Event
(sometimes namedSignal
) may indeed be considered as a basic synchronization primitive, and Python for example even include it in its standard library.So I was wondering if it could be included directly in
tokio::sync
module — the methods may be renamed, I took the names from Python for this example implementation.Beta Was this translation helpful? Give feedback.
All reactions