-
-
Notifications
You must be signed in to change notification settings - Fork 647
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(any_spawner): use spawner handle
This commits fix a panic that could arrive because of conflicting borrowing of the `LOCAL_POOL`. When `.run()` is executed, it mut borrows the LocalPool for the whole duration of the Task which means, any call to `Executor::spawn` by ran Futures would make the `RefCell` panics. Signed-off-by: Enzo "raskyld" Nocera <enzo@nocera.eu>
- Loading branch information
Showing
1 changed file
with
31 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters