An open API service indexing awesome lists of open source software.

https://github.com/kanitsharma/yieldtask

Make your data.task monads yieldable in redux sagas
https://github.com/kanitsharma/yieldtask

functional-programming react redux redux-saga task-monads-yieldable

Last synced: 3 months ago
JSON representation

Make your data.task monads yieldable in redux sagas

Awesome Lists containing this project

README

          

# yieldTask

Make your data.task monads yieldable in redux sagas.

### Example

```javascript
import runTask from "yieldtask";
import Task from "data.task";

const testTask = x => Task.of(a).map(x => x + 10);

function* test() {
const a = yield runTask(testTask, 10); // a => 20
}

function* mySaga() {
yield takeLatest("EXAMPLE_ACTION", test);
}
```