Copyable, creator-context callback with a typed signature. More...
#include <StormByte/safe/function.hxx>
Copyable, creator-context callback with a typed signature.
| Signature | Callback signature, such as void(double) or Size(Size). |
The callback context is destroyed by its creator-module Release function. Call returns Status for ordinary failures; value-returning signatures receive caller-owned result storage explicitly. Call propagates StormByte::Exception unchanged. Other exceptions are converted to Status::Failure. The provider must keep its callback implementation valid until the function is destroyed.
Value arguments are passed for the duration of the call. Const-reference arguments are borrowed only until Call returns and must not be retained by the provider. Function pointers use the platform's default C++ calling convention. Participants must use a compatible C++ ABI and calling convention. The provider module and Base must remain loaded until the callback is destroyed. Invocation thread safety and reentrancy are provider responsibilities. A callback must not destroy itself while running. This is not std::function.