Skip to content

Spawned Tasks Are not Running Detatched With Smol Executor #36

@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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions