work 0.1.0
A gig is a bunch of related work. The pool does the work.
Loading...
Searching...
No Matches
work::handler_for Concept Referenceexport
module work

A handler consumes a task, optionally with a borrowed child-submission context. More...

Concept definition

template<class Handler, class T>
concept handler_for = task<T> &&
(std::is_nothrow_invocable_v<Handler &, T, context<T> &> ||
std::is_nothrow_invocable_v<Handler &, T> ||
std::is_nothrow_invocable_v<Handler &, context<T> &>)
A handler consumes a task, optionally with a borrowed child-submission context.
Definition work.ccm:37
Tasks can move between workers without throwing.
Definition work.ccm:31

Detailed Description

A handler consumes a task, optionally with a borrowed child-submission context.

Definition at line 37 of file work.ccm.