var pact = new mini.Pact();var promise = pact.makePromise();// now you give out the promise, and then later on...pact.resolve(promise, value);