Merge pull request #1327 from zed-industries/plugin-epoch

Configurable Plugin Yielding
This commit is contained in:
Isaac Clayton 2022-07-13 15:29:22 +02:00 committed by GitHub
commit 01a2d53638
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 164 additions and 47 deletions

View file

@ -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")
}