Template Function concore::v1::spawn(F&&, task_group, bool)¶
Defined in File spawn.hpp
Function Documentation¶
-
template<typename
F>
voidconcore::v1::spawn(F &&ftor, task_group grp, 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 and a task group instead of a task.
- Parameters
ftor: The ftor to be executedgrp: The group in which the task should be executed.wake_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&&, bool)