Skip to content

Commit c958baf

Browse files
authored
Merge pull request #28 from LaurenceRawlings/patch-1
docs: add missing function for task creation in `AdvancedConcepts.md`
2 parents 20117a8 + eb909bc commit c958baf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/docs/UserGuide/AdvancedConcepts.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def process_data(data):
140140

141141
pipeline = (
142142
task(get_data, branch=True, workers=20)
143-
| task(workers=10, multiprocess=True)
143+
| task(process_data, workers=10, multiprocess=True)
144144
)
145145
```
146146

@@ -295,4 +295,4 @@ In Python, anything that goes into and comes out of a process must be picklable.
295295

296296
On Windows, generator objects cannot be pickled, so cannot be passed as inputs and outputs when multiprocessing.
297297

298-
Note that, for example, using `branch=True` to pass individual outputs from a generator into a multiprocessed task is still fine, because the task input would not be a `generator` object.
298+
Note that, for example, using `branch=True` to pass individual outputs from a generator into a multiprocessed task is still fine, because the task input would not be a `generator` object.

0 commit comments

Comments
 (0)