Merge pull request #1327 from zed-industries/plugin-epoch
Configurable Plugin Yielding
This commit is contained in:
commit
01a2d53638
4 changed files with 164 additions and 47 deletions
|
@ -67,13 +67,9 @@ fn main() {
|
|||
}
|
||||
|
||||
/// Creates a default engine for compiling Wasm.
|
||||
/// N.B.: this must create the same `Engine` as
|
||||
/// the `create_default_engine` function
|
||||
/// in `plugin_runtime/src/plugin.rs`.
|
||||
fn create_default_engine() -> Engine {
|
||||
let mut config = Config::default();
|
||||
config.async_support(true);
|
||||
// config.epoch_interruption(true);
|
||||
Engine::new(&config).expect("Could not create engine")
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue