Skip to content

Commit

Permalink
[js] Add a Not Implememented stub for ThreadPoolScheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
pmurias committed Sep 24, 2017
1 parent ab4207f commit 13950b7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/core/JavaScriptScheduler.pm
Expand Up @@ -40,6 +40,14 @@ my class JavaScriptScheduler does Scheduler {
method loads(--> 0) { }
}


# Stubbed for tests
class ThreadPoolScheduler {
method new(*@args) {
die "Not implemented on the JS backend";
}
}

# This thread pool scheduler will be the default one.
PROCESS::<$SCHEDULER> = JavaScriptScheduler.new();

Expand Down

0 comments on commit 13950b7

Please sign in to comment.