summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlice Ryhl <aliceryhl@google.com>2023-08-28 13:48:06 +0300
committerTejun Heo <tj@kernel.org>2023-09-25 22:46:42 +0300
commit115c95e9e14c482682080598907e6a18091fd0af (patch)
tree1628ae3751ab583e7b802f6b415430c37ddead7c /scripts
parent47f0dbe8fdc28e6e79505b640619e0cbccb91cef (diff)
downloadlinux-115c95e9e14c482682080598907e6a18091fd0af.tar.xz
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: Gary Guo <gary@garyguo.net> Signed-off-by: Gary Guo <gary@garyguo.net> Signed-off-by: Alice Ryhl <aliceryhl@google.com> Reviewed-by: Martin Rodriguez Reboredo <yakoyoku@gmail.com> Reviewed-by: "Andreas Hindborg (Samsung)" <nmi@metaspace.dk> Reviewed-by: Benno Lossin <benno.lossin@proton.me> Reviewed-by: Boqun Feng <boqun.feng@gmail.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions