Reject the promise if it’s not main thread
Reject the promise if it’s not main thread

The assert is preserved, so you catch the bug in debug mode. But in production the promise chain should fail.

pgherveou/PromiseKit,mxcl/PromiseKit,pgherveou/PromiseKit,allen-zeng/PromiseKit,allen-zeng/PromiseKit,pgherveou/PromiseKit,mxcl/PromiseKit,mxcl/PromiseKit