We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4df9c5f commit f2bedffCopy full SHA for f2bedff
deltachat-ffi/src/lib.rs
@@ -119,15 +119,16 @@ where
119
RT.spawn(fut)
120
}
121
122
-fn spawn_with_context<T>(context: &Context, fut: T) -> T::Output
+fn spawn_with_context<T>(context: &Context, fut: T) -> JoinHandle<T::Output>
123
where
124
T: Future + Send + 'static,
125
T::Output: Send + 'static,
126
{
127
let subscriber = Registry::default().with(context.to_layer());
128
+ let context_id = context.get_id();
129
RT.spawn(
- async {
130
- let ffi_span = info_span!("ffi_span", context_id = context.get_id());
+ async move {
131
+ let ffi_span = info_span!("ffi_span", context_id = context_id);
132
fut.instrument(ffi_span).await
133
134
.with_subscriber(subscriber),
0 commit comments