mirror of
https://github.com/ohwgiles/laminar.git
synced 2026-09-25 21:36:50 +00:00
resolves #30: job execution timeout
Add the ability to configure a timeout in seconds after which a job run will be automatically aborted
This commit is contained in:
@@ -43,6 +43,9 @@ public:
|
||||
// invoked with the read data
|
||||
void addDescriptor(int fd, std::function<void(const char*,size_t)> cb);
|
||||
|
||||
// add a one-shot timer callback
|
||||
kj::Promise<void> addTimeout(int seconds, std::function<void()> cb);
|
||||
|
||||
// add a path to be watched for changes
|
||||
void addWatchPath(const char* dpath);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user