8000 Spawned Tasks Are not Running Detatched With Smol Executor · Issue #36 · bastion-rs/agnostik · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Spawned Tasks Are not Running Detatched With Smol Executor #36
Open
@zicklag

Description

@zicklag

When I run use agnostik::spawn to spawn a task with the Smol executor feature, the task is not actually running unless I await the join handle.

I expected that the task should spawned in the "background" so to speak so I could continue executing other async code while it runs. Smol accomplishes this by detach()-ing the task, but then you can't await on it after that so that seems like it breaks the agnostik::JoinHandle. 🤔 Not sure how we want to handle that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels< 3305 /div>

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0