I want to introduce a delay in a saga (using redux-saga).
How can I do this?
If redux-saga provides an API, I would also be interested in how to achieve it manually.
function* save({ payload }) {
yield put(pending());
// I want to simply wait (non-blocking) here for say 2 seconds
yield put(complete());
}
delay
function mentioned in the tutorial. – Volvox