diff options
author | Mathias Lafeldt <mathias.lafeldt@gmail.com> | 2022-06-19 23:29:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-19 23:29:48 +0200 |
commit | 9f1f76f0b0fc71fc57a885f37c5bcabfd1de4b82 (patch) | |
tree | cd42560a7a28dcd651991c540e84fb45fca438a6 | |
parent | d0137a93df99d88728cc1dbc6c37e89d39ec2914 (diff) |
refactor: make MainWorker::evaluate_module public (#14892)
-rw-r--r-- | runtime/worker.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/worker.rs b/runtime/worker.rs index 94c05cd82..e46b5c75f 100644 --- a/runtime/worker.rs +++ b/runtime/worker.rs @@ -236,7 +236,11 @@ impl MainWorker { } } - async fn evaluate_module(&mut self, id: ModuleId) -> Result<(), AnyError> { + /// Executes specified JavaScript module. + pub async fn evaluate_module( + &mut self, + id: ModuleId, + ) -> Result<(), AnyError> { let mut receiver = self.js_runtime.mod_evaluate(id); tokio::select! { // Not using biased mode leads to non-determinism for relatively simple |