Add option for handling any suspension to asyncToPromise

Allows the user to perform an action on any suspension, useful e.g. for threading.
Merge pull request #292 from LeszekSwirski/universal-susp-handler

Add option for handling any suspension to asyncToPromise