function resolvedSyncPromise(value) {
    return new SyncPromise(function (resolve) {
        resolve(value);
    });
}
Creates a resolved sync promise.

@param value the value to resolve the promise with
@returns the resolved sync promise