Template Function concore::v1::spawn(F&&, bool)¶
Defined in File spawn.hpp
Function Documentation¶
-
template<typename
F>
voidconcore::v1::spawn(F &&ftor, bool wake_workers = true)¶ Spawn one task, given a functor to be executed.
This is similar to the spawn(task&&, bool) function, but it takes directly a functor instead of a task.
- Parameters
ftor: The ftor to be executedwake_workers: True if we should wake other workers for this task
- Template Parameters
F: The type of the functor
If the current task has a group associated, the new task will inherit that group.
- See
spawn(task&& t, bool wake_workers)