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
public interface IPromise | |
{ | |
/// <summary> | |
/// Attaches a callback to be executed when the Deferred is resolved | |
/// </summary> | |
IPromise Done(Action callback); | |
/// <summary> | |
/// Attaches a callback to be executed when the Deferred is rejected | |
/// </summary> | |
IPromise Fail(Action<Exception> callback); |