Skip to content

Commit feb455f

Browse files
committed
fix readme
1 parent cf2dbad commit feb455f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -425,14 +425,19 @@ $workflow = workflow(
425425
storeThumb: async(
426426
new StoreFile(),
427427
file: response('thumb'),
428-
path: variable('savePath'),
428+
dir: variable('saveDir'),
429429
),
430430
storePoster: async(
431431
new StoreFile(),
432432
file: response('poster'),
433-
path: variable('savePath'),
433+
dir: variable('saveDir'),
434434
)
435435
);
436+
$run = run(
437+
$workflow,
438+
image: __DIR__ . '/src/php.jpeg',
439+
saveDir: __DIR__ . '/src/output/',
440+
);
436441
```
437442

438443
The graph for the Workflow above shows that `thumb` and `poster` run async, just like `storeThumb` and `storePoster` but the `store*` jobs run after the first dependency level gets resolved.

0 commit comments

Comments
 (0)