##// END OF EJS Templates
bump dependencies, bump ts to 5.2...
bump dependencies, bump ts to 5.2 moved observables logic to ObservableImpl fixed while/until bug with complete handler multiple call

File last commit:

r107:e59104632d14 default
r155:6acbe6efbe20 v1.10.2 default
Show More
play.ts
16 lines | 419 B | video/mp2t | TypeScriptLexer
import aspect = require("dojo/aspect");
import { Cancellation } from "@implab/core-amd/Cancellation";
export const play = (ani: dojo._base.Animation, ct = Cancellation.none) => {
if (ct.isSupported())
ct.register(() => ani.stop());
return new Promise<void>(resolve => {
aspect.after(ani, "onEnd", x => {
resolve();
return x;
});
ani.play();
});
};