desync icon indicating copy to clipboard operation
desync copied to clipboard

Hassle-free asynchronous programming for Rust

Results 5 desync issues
Sort by recently updated
recently updated
newest added

From PR #7: > Actually, there's more soundness bugs with the signatures of the future_[de]sync() methods. To illustrate: > > ```Rust > use desync::Desync; > use futures::executor; > > fn...

Hi, Right now the signature for the future is ```rust pub fn future(&self, job: TFn) -> impl Future+Send where TFn: 'static+Send+for BoxFuture impl 'a + Future+Send where TFn: 'a+Send+FnOnce(&'a mut...

Hi, I had a code like this: ``` let (mut sender, stream) = mpsc::channel(1000); tokio::task::spawn(async move { while { let item = ... sender.send(item).await.unwrap(); } }); let stream2 = pipe(Arc::new(Desync::new(0)),...

Hello, Correct me if I'm wrong, but it looks to me like the only reason why the type stored in the Desync has to be `Send` is that it's passed...

Hi, The following code causes panic, saying `thread 'desync jobs thread' panicked at 'there is no reactor running, must be called from the context of a Tokio 1.x runtime'` ```rs...