Struct spawn_executor

Struct Documentation

struct concore::v1::spawn_executor

Executor that spawns tasks instead of enqueueing them. Similar to calling spawn() on the task.

See

spawn(), spawn_continuation_executor, global_executor

Public Functions

template<typename F>
void execute(F &&f) const

Spawns the execution of the given functor.

This will spawn a task that will call the given functor.

Parameters
  • f: The functor object to be executed

void execute(task t)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Friends

friend bool operator==(spawn_executor, spawn_executor)

Equality operator; always true.

friend bool operator!=(spawn_executor, spawn_executor)

Inequality operator; always false.