File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -624,7 +624,7 @@ You can pass a function to be run as a job:
624624new Bree ({ jobs: [someFunction] });
625625```
626626
627- or
627+ (or)
628628
629629``` js
630630new Bree ({
@@ -637,10 +637,11 @@ new Bree({
637637});
638638```
639639
640- Note that you cannot pass a built-in/bound function .
640+ The function will be run as if it's in its own file, therefore no variables or dependencies will be shared from the local context by default .
641641
642- The function will be run as if it is in it's own file, therefore no variables or dependendencies will be shared from the local context by default.
643- You should be able to pass data via ` worker.workerData ` , see [ Custom Worker Options] ( #custom-worker-options ) .
642+ You should be able to pass data via ` worker.workerData ` (see [ Custom Worker Options] ( #custom-worker-options ) ).
643+
644+ Note that you cannot pass a built-in nor bound function.
644645
645646
646647## Concurrency
You can’t perform that action at this time.
0 commit comments