Add support for configuring plugin yield mechanism, stashing

This commit is contained in:
Isaac Clayton 2022-07-13 11:57:00 +02:00
parent d04c3388b4
commit 10670dba70
4 changed files with 88 additions and 27 deletions

View file

@ -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()