Closed Rossil2012 closed 1 year ago
When should I call "Promise.config({ cancellation: true })"?
import { Promise } from "bluebird"; Promise.config({ cancellation: true });
import { Promise } from "bluebird"; ... Promise.config({ cancellation: true }); promA = new Promise(...); ... Promise.config({ cancellation: true }); promB = new Promise(...);
// index.ts import { Promise } from "bluebird"; Promise.config({ cancellation: true });
When should I call "Promise.config({ cancellation: true })"?