Snodo.Component.Wrap.Timeout (snodo v0.4.3)

Copy Markdown View Source

Bounds one component callback with a supervised task.

timeout: 5_000 is the default. On expiry, the task is stopped and the component returns a defined failure. The callback runs in a task process, so its self() is different from the request process. The task is linked to its request owner and stops if that process ends. Progress reports from the callback work as they do without the wrapper.

Summary

Functions

Runs the next callback in a bounded supervised task.

Functions

call(context, arguments, next, options)

Runs the next callback in a bounded supervised task.