Skip to content

Is it possible to scope worker functions?#154

Description

@kogratte

馃摎 Is your documentation request related to a problem?

Hey there! I need to use a generic worker which takes different setups according the stores they're used.
I would like to be able to write something like

defineStore('myStore', () => {
   const worker = new Worker('thisworker')
})

multiple times.

As far as I understand documentation and sources, all methods will be exported to global scope, making them available from anywhere.

Is there a way to achieve what I need using this module or should I do it another way?

馃攳 Where should you find it?

No response

鈩癸笍 Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions