You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IdleComp instances can handle any value very well:
IdleComp.of(5).map(increment).map(double)
Expect when it comes to Promises.
IdleComp.of(Promise.resolve(5)).map(increment)// NaN.map(double)// NaN// Works, but only using idle time for scheduling promises micro-tasks// that have higher precedence than macro-tasks (i.e user input) :(IdleComp.of(Promise.resolve(5)).map(p=>p.then(increment)).map(p=>p.then(double))
We need a interface that can transform a chain into promise friendly, meaning that a AsynIdleComp will await until promises resolution and then schedule a idle computation.
The text was updated successfully, but these errors were encountered:
IdleComp instances can handle any value very well:
Expect when it comes to
Promises
.We need a interface that can transform a chain into promise friendly, meaning that a AsynIdleComp will await until promises resolution and then schedule a idle computation.
The text was updated successfully, but these errors were encountered: