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
You might like to consider using async-csp, which uses async/await instead of generators. I think it's much cleaner! I don't think js-csp is compatible with async/await, as it doesn't seem to return promises (or did I miss it?).
The text was updated successfully, but these errors were encountered:
async..await-based CSP looks great, but is inherently more limited than generators-based CSP, because you have no control over the scheduling of resumption of the coroutines. The JS engine controls the scheduling of promise resolution, and you have no control from the outside of an async function. That means starvation could occur. I have a generators-based CSP implementation so I've dealt with the scheduling issues first-hand.
You might like to consider using async-csp, which uses async/await instead of generators. I think it's much cleaner! I don't think js-csp is compatible with async/await, as it doesn't seem to return promises (or did I miss it?).
The text was updated successfully, but these errors were encountered: