Skip to content

Instantly share code, notes, and snippets.

View hsbalar's full-sized avatar

Hitesh Balar hsbalar

View GitHub Profile
@hsbalar
hsbalar / custom-async-order.js
Created February 16, 2021 06:35 — forked from vijayjangid/custom-async-order.js
Async job in custom order
/*
H ~~~~ ->
A -> B ->
C -> D
H: high priority long task, should start in parallel to A
A: first task
B: should start once A is finished
C: should start once B & H is finished
D: should start once C is finished