mirror of
https://github.com/feigeCode/navop.git
synced 2026-09-22 16:01:30 +00:00
21 lines
374 B
Plaintext
21 lines
374 B
Plaintext
package onet:extension;
|
|
|
|
interface task {
|
|
enum task-state {
|
|
running,
|
|
completed,
|
|
failed,
|
|
cancelled,
|
|
}
|
|
|
|
record task-status {
|
|
id: string,
|
|
title: string,
|
|
state: task-state,
|
|
message: option<string>,
|
|
}
|
|
|
|
report-status: func(status: task-status);
|
|
is-cancelled: func(task-id: string) -> bool;
|
|
}
|