This repository was archived by the owner on Feb 2, 2023. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork104
This repository was archived by the owner on Feb 2, 2023. It is now read-only.
Question: Async/await vs decorators #14
Closed
Description
I wonder if the proposal might be defined in a more generic way using some kind of a decorator function syntax.
E.g.
@asyncfunction*chainAnimationsAsync(elem,animations){varret=null;try{for(varanimofanimations){ret=yieldanim(elem);}}catch(e){/* ignore and keep going */}returnret;}
where@async is decorator function (basicallyspawn function from non-async example).
Metadata
Metadata
Assignees
Labels
No labels