Add option for handling any suspension to asyncToPromise

Allows the user to perform an action on any suspension, useful e.g. for threading. Goes well with #291, as then the user can return null from this handler to fall through to the default handling of this suspension type.