3.5 Последовательность Sagas с использованием yield*
You can use the builtin yield*
operator to compose multiple Sagas in a sequential way. This allows you to sequence your macro-tasks in a procedural style.
Note that using yield*
will cause the JavaScript runtime to spread the whole sequence. The resulting iterator (from game()
) will yield all values from the nested iterators. A more powerful alternative is to use the more generic middleware composition mechanism.
Last updated