-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resumable function invocation (#110)
* Move call_stack to Interpreter struct * Accept func and args when creating the Interpreter * Create a RunState to indicate whether the current interpreter is recoverable * Add functionality to resume execution in Interpreter level * Implement resumable execution in func * Expose FuncInvocation and ResumableError * Fix missing docs for FuncInvocation * Add test for resumable invoke and move external parameter passing to start/resume_invocation * Add comments why assert is always true * Add note why value stack is always empty after execution * Use as_func * Document `resume_execution` on conditions for `is_resumable` and `resumable_value_type` * Document conditions where NotResumable and AlreadyStarted error is returned * Warn user that invoke_resumable is experimental
- Loading branch information
Showing
4 changed files
with
334 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.