harmony icon indicating copy to clipboard operation
harmony copied to clipboard

Transition entire api to async

Open cobbdb opened this issue 9 years ago • 1 comments

defineSlot() and load() will need callbacks. One option is to expose a promise:

harmony.defineSlot({..}).then(function (slot) {
    // do things with the slot.
});

... or with normal callbacks ...

harmony.defineSlot({..}, function (slot) {
    // do things with the slot.
});

The goal is to wrap the api inside of googletag.cmd for stability.

cobbdb avatar Aug 05 '16 22:08 cobbdb

Would need to shim promise.. probably save that for a someday wishlist http://caniuse.com/#feat=promises

cobbdb avatar Oct 17 '17 06:10 cobbdb