Skip to content

Commit

Permalink
chore: resolve issue comments
Browse files Browse the repository at this point in the history
Signed-off-by: Okiki <[email protected]>
  • Loading branch information
okikio committed Mar 17, 2024
1 parent a9c1c6e commit f7f61c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"publish": "deno publish"
},
"imports": {
"@okikio/transferables": "jsr:@okikio/transferables@^1.0.1",
"@okikio/transferables": "jsr:@okikio/transferables@^1.0.2",
"@std/assert": "jsr:@std/[email protected]"
},
"exports": {
Expand Down
11 changes: 1 addition & 10 deletions src/rpc/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,7 @@ let supportFlags: Awaited<ReturnType<typeof isSupported>> = {
streams: false,
channel: false,
};
(async () => {
await new Promise<void>((resolve) => {
isSupported()
.then((res) => (supportFlags = res, resolve()));

// Just in-case some runtime takes longer that we want to confirm support for streams and/or channels
// The `isSupported` function is supposed to be fairly fast, but just in-case it isn't we set a 3sec cutoff
setTimeout(() => resolve(), 3000);
});
})();
isSupported().then((res) => (supportFlags = res));

export class RpcAgent {
#msgPort: MsgPortNormalized;
Expand Down

0 comments on commit f7f61c9

Please sign in to comment.