make js cancellable (#1901)

This commit is contained in:
Aiden McClelland
2022-11-01 14:01:42 -06:00
parent defc98ab0e
commit 21cf4cd2ce
3 changed files with 28 additions and 84 deletions

View File

@@ -749,8 +749,8 @@ export const action = {
async slow(effects, _input) {
while(true) {
effects.error("A");
// await ackermann(3,10);
await effects.sleep(100);
await ackermann(3,10);
// await effects.sleep(100);
}
},