Commit 3525914f authored by Alice Ryhl's avatar Alice Ryhl Committed by Treehugger Robot
Browse files

UPSTREAM: rust: workqueue: add `try_spawn` helper method



This adds a convenience method that lets you spawn a closure for
execution on a workqueue. This will be the most convenient way to use
workqueues, but it is fallible because it needs to allocate memory.

Co-developed-by: default avatarGary Guo <gary@garyguo.net>
Signed-off-by: default avatarGary Guo <gary@garyguo.net>
Signed-off-by: default avatarAlice Ryhl <aliceryhl@google.com>
Reviewed-by: default avatarMartin Rodriguez Reboredo <yakoyoku@gmail.com>
Reviewed-by: default avatar"Andreas Hindborg (Samsung)" <nmi@metaspace.dk>
Reviewed-by: default avatarBenno Lossin <benno.lossin@proton.me>
Reviewed-by: default avatarBoqun Feng <boqun.feng@gmail.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
[ Upstream commit 115c95e9 ]
Change-Id: I9f7206d123636c420222085a3f16a2d688b97443
Signed-off-by: default avatarAlice Ryhl <aliceryhl@google.com>
parent 7b431db1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment