It's basic deferred / promise stuff. It just behaves a little differently that others.