spec: accept RFC 0011 and integrate structured tasks
spec 04 §33-§36 (tasks, loans, Send/Share table, scheduler with separate schedule seed, quantum, task limit); spec 02 §6, 07a, 08, 11 updated; tasks published, task_transfer and task_borrow_returns reserved; Q-014 resolved; bundle gains the task sections
This commit is contained in:
1 parent
1eb446eedb
commit
2289917af3
9 files changed
+158
-6
No files matched your search
@@ -255,6 +255,10 @@ Instructions, budget accounting and verifier rules: spec 03 §18–§20. Summary
|
||||
|
||||
Allowed only in functions that declare the effect `unsafe` or are `trusted` (`E6001`, spec 13 §6.4).
|
||||
|
||||
## Feature `tasks`
|
||||
|
||||
Types `scope` and `task<T>` (linear, function-bound), instructions `task.scope.begin`, `task.spawn %s, @f(…)`, `task.join`, `task.cancel`, `task.cancelled`, `task.scope.end`; loans, `Send`/`Share` and the scheduler: spec 04 §33–§36.
|
||||
|
||||
## Run result
|
||||
|
||||
`aji run` executes the function `@main`, whose parameters MUST all be capabilities, bound by name at instantiation (spec 05 §10.2); without the `capabilities` feature it takes no parameters. On return it reports `{"status":"returned","value":V}` where `V` renders the returned value as JSON:
|
||||
|
||||
Reference in new issue
Block a user