Remove stray todo
This commit is contained in:
parent
5e50430299
commit
d5f0e91faa
2 changed files with 15 additions and 12 deletions
|
@ -184,13 +184,12 @@ impl AsyncWindowContext {
|
|||
self.window.update(self, |_, cx| cx.update_global(update))
|
||||
}
|
||||
|
||||
pub fn spawn<Fut, R>(&self, f: impl FnOnce(AsyncWindowContext) -> Fut + 'static) -> Task<R>
|
||||
pub fn spawn<Fut, R>(&self, f: impl FnOnce(AsyncWindowContext) -> Fut) -> Task<R>
|
||||
where
|
||||
Fut: Future<Output = R> + 'static,
|
||||
R: 'static,
|
||||
{
|
||||
let this = self.clone();
|
||||
self.foreground_executor.spawn(async move { f(this).await })
|
||||
self.foreground_executor.spawn(f(self.clone()))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue