This repository has been archived by the owner on Dec 25, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finalized Promise module structure and separated out final version of…
… LazyPromise class. This introduces smart defer methods which for LazyPromises do not trigger the underlying promise unless the consumer calls 'then'.
- Loading branch information
electricessence
committed
May 27, 2016
1 parent
4da16f8
commit 83f81c4
Showing
69 changed files
with
1,293 additions
and
665 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "typescript-dotnet", | ||
"version": "2.16.6", | ||
"version": "2.17.0", | ||
"ignore": [ | ||
".bowercc", | ||
".gitignore", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/*! | ||
* @author electricessence / https://github.com/electricessence/ | ||
* Licensing: MIT | ||
*/ | ||
import { Promise, PromiseBase } from "./Promise"; | ||
export declare class LazyPromise<T> extends Promise<T> { | ||
private _resolver; | ||
constructor(_resolver: Promise.Executor<T>); | ||
protected _onDispose(): void; | ||
private _onThen(); | ||
thenSynchronous<TResult>(onFulfilled: Promise.Fulfill<T, TResult>, onRejected?: Promise.Reject<TResult>): PromiseBase<TResult>; | ||
thenThis(onFulfilled: (v?: T) => any, onRejected?: (v?: any) => any): PromiseBase<T>; | ||
delayFromNow(milliseconds?: number): PromiseBase<T>; | ||
delayAfterResolve(milliseconds?: number): PromiseBase<T>; | ||
} | ||
export default LazyPromise; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.