Async handling
Introduction
Async Actions
Monitor actions
return thread.monitor(
//An Asap
diContext.issuesService.fetch(repo, org, page).catch(() => thread.reducers.$fetch([])),
//What to do when the asap resolves
(issues, reducers) => reducers.$fetch(issues as Issue[]),
//Next two params are for logging purposes
// - Description of the async operation
'fetch',
// - Payload (also shown on the logging)
[repo, org, page]
)