Skip to content

Commit

Permalink
deno v0.41.0, formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
eliassjogreen committed Apr 18, 2020
1 parent 07c4ac2 commit ed2d5ca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
on: push
name: Test
jobs:
testAll:
name: test all
test:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: denolib/setup-deno@master
with:
deno-version: 0.39.0
- run: deno test -A test.ts
deno-version: 0.41.0
- run: deno test -A
9 changes: 3 additions & 6 deletions mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ export function parry<S extends any[], T>(

const worker = new Worker("./worker.js", { type: "module" });

worker.postMessage({
type: "set",
data: original.toString(),
});

worker.onmessage = (event) => {
const { type, id, data } = event.data;

Expand All @@ -46,8 +41,8 @@ export function parry<S extends any[], T>(
promises[id] = [resolve, reject];
worker.postMessage({
type: "call",
id,
data: args,
id,
});

id++;
Expand All @@ -65,6 +60,8 @@ export function parry<S extends any[], T>(
});
};

call.set(original);

return call;
}

Expand Down

0 comments on commit ed2d5ca

Please sign in to comment.