Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ?multi option to disable singleton behavior #7

Merged
merged 1 commit into from
Sep 4, 2018

Conversation

developit
Copy link
Collaborator

Example Usage:

import Foo from 'comlink-loader?multi!./foo.worker';

await new Foo()  // creates a new worker
await new Foo()  // creates another new worker
import Foo from 'comlink-loader?multi!./foo.worker';

await new Foo()  // creates a new worker
await new Foo()  // creates another new worker
@developit developit merged commit 9b22f02 into master Sep 4, 2018
@developit developit deleted the multi-instance branch September 4, 2018 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant