mirror of
https://github.com/ntex-rs/ntex.git
synced 2025-04-01 20:07:39 +03:00
Adds send bound to arbiter exec (#514)
Co-authored-by: James Bell <jamesbell@microsoft.com>
This commit is contained in:
parent
e6a25db7ee
commit
8cfe0e50b1
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ impl Arbiter {
|
|||
/// Send a function to the Arbiter's thread. This function will be executed asynchronously.
|
||||
/// A future is created, and when resolved will contain the result of the function sent
|
||||
/// to the Arbiters thread.
|
||||
pub fn exec<F, R>(&self, f: F) -> impl Future<Output = Result<R, oneshot::RecvError>>
|
||||
pub fn exec<F, R>(&self, f: F) -> impl Future<Output = Result<R, oneshot::RecvError>> + Send + 'static
|
||||
where
|
||||
F: FnOnce() -> R + Send + 'static,
|
||||
R: Send + 'static,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue