Skip to content

Instantly share code, notes, and snippets.

View kevinrodbe's full-sized avatar
⚛️
Building Things

Kevin Rodríguez kevinrodbe

⚛️
Building Things
View GitHub Profile
@helabenkhalfallah
helabenkhalfallah / httpFifoRequestsExecutor.js
Last active March 9, 2022 02:24
Async Http Requests Executor (FiFo) using ES6 Generator
function httpFiFoRequestsExecutor({
onTaskSuccess,
onTaskFail,
}) {
async function* execute(taskInfos, props) {
const {
taskIdentifier,
taskFn
} = taskInfos || {};
try {