Common System 0.2.0
Common interfaces and patterns for system integration
Loading...
Searching...
No Matches
kcenon::common::concepts::DelayedCallable Concept Referenceexport

A callable suitable for delayed execution. More...

#include <callable.h>

Concept definition

template<typename F>
std::move_constructible<std::decay_t<F>>
A callable suitable for delayed execution.
Definition callable.h:275
A callable type that returns void when invoked.
Definition callable.h:80

Detailed Description

A callable suitable for delayed execution.

Combines VoidCallable with move-constructibility for storage in delayed execution queues.

Example usage:

template<DelayedCallable F>
void schedule_delayed(F&& func, std::chrono::milliseconds delay) {
// Store func and schedule for later execution
}

Definition at line 275 of file callable.h.