Add support for configuring plugin yield mechanism, stashing
This commit is contained in:
parent
d04c3388b4
commit
10670dba70
4 changed files with 88 additions and 27 deletions
|
@ -23,7 +23,7 @@ mod tests {
|
|||
}
|
||||
|
||||
async {
|
||||
let mut runtime = PluginBuilder::new_with_default_ctx()
|
||||
let mut runtime = PluginBuilder::new_with_default_ctx(PluginYield::default_fuel())
|
||||
.unwrap()
|
||||
.host_function("mystery_number", |input: u32| input + 7)
|
||||
.unwrap()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue