Function createSyncRejectedPromise

Returns a single synchronous Promise instance that is already rejected with the given reason. Any chained operations will execute synchronously at the point of being added (eg. catch(); finally()).