protected override IPromise <TR> CreatePromise <TR>(Delegate code, int insertionIndex = -1)
        {
            var promise = PromiseInfo <TR> .CreateInstance(code, insertionIndex : insertionIndex);

            ThenUniqueID = promise.UniqueID;
            return(promise);
        }
Пример #2
0
        protected override IPromise <TR> CreatePromise <TR>(Delegate code, int insertionIndex = -1)
        {
            var result = PromiseInfo <TR> .CreateInstance(code, modalUniqueId : _modalUniqueIdForRelatedPromise, state : State, insertionIndex : insertionIndex);

            ThenUniqueID = result.UniqueID;
            return(result);
        }