move callback execution to promise resolve
move callback execution to promise resolve

moves the exection of the legacy callbacks to the promise
resolution instead of using setTimeout.

fippo/rtcpeerconnection-shim,fippo/rtcpeerconnection-shim