Browse Source
Prevent accidentally spawning a task that could outlive the actor system and become a zombie. Any long-lived task should be tied to its owner by keeping RemoteHandle around.rollover-test-2
3 changed files with 7 additions and 1 deletions
@ -0,0 +1,3 @@ |
|||
disallowed-methods = [ |
|||
"tokio::spawn", # tasks can outlive the actor system, prefer spawn_with_handle() |
|||
] |
Loading…
Reference in new issue