Skip to content

Commit 7e416ff

Browse files
author
Roy Ng
committed
Update Readme
1 parent af3c32a commit 7e416ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ By using Flow, we should able to achieve the followings:
1313
- Logics / operations can be reused easily
1414
- The logic flows are readable by anyone (including the code reviewers)
1515
- Each line of codes is meaningfully and avoid ambiguous keywords
16-
- No more callback hell for complicated async opertions
16+
- No more callback hell for complicated async operations
1717
- Debuggable both at development and production stage
1818

1919
Flow is referencing Composite pattern (https://en.wikipedia.org/wiki/Composite_pattern) and
@@ -73,11 +73,11 @@ class UploadSingleImageOp: FlowOperation, FlowOperationCreator {
7373
}
7474

7575
```
76-
For the above exmaple, FlowArrayGroupDispatcher will create a group of UploadSingleImageOp based on the array size of `images` in data bucket. As UploadSingleImageOp declares `targetImageForUpload` as it's input key and `uploadedImageUrl` as it's output key. FlowArrayGroupDispatcher will create temporary data bucket for each UploadSingleImageOp and contains `targetImageForUpload` inside. If the operation is succeed, FlowArrayGroupDispatcher will collect the object keyed with `uploadedImageUrl` and put into the result array `imageURLs`.
76+
For the above example, FlowArrayGroupDispatcher will create a group of UploadSingleImageOp based on the array size of `images` in data bucket. As UploadSingleImageOp declares `targetImageForUpload` as it's input key and `uploadedImageUrl` as it's output key. FlowArrayGroupDispatcher will create temporary data bucket for each UploadSingleImageOp and contains `targetImageForUpload` inside. If the operation is succeed, FlowArrayGroupDispatcher will collect the object keyed with `uploadedImageUrl` and put into the result array `imageURLs`.
7777

7878
In such design, UploadSingleImageOp can be `reused as single operation or grouped operation`.
7979

80-
You can also set the `maxConcurrentOperationCount (optional, default = 3)` to control whether the opertations are executed on one by one or in batch.
80+
You can also set the `maxConcurrentOperationCount (optional, default = 3)` to control whether the operations are executed on one by one or in batch.
8181
If `allowFailure (optional, default = false)` is set to true, the Flow will continue to run even some / all operations in the group are failed. Therefore, the output array may be shorter than the input array or even empty.
8282

8383
## Cases

0 commit comments

Comments
 (0)