My objective was to reduce the complexity of `addCallbacks`. This way everything `addCallbacks` has to do is add the callbacks to their queues and if the promise was already settled, schedule the calling of those callbacks.

I should comment here what this typeof check is supposed to be doing.