Skip to content

Instantly share code, notes, and snippets.

View bladepop's full-sized avatar

Daniel Baruch bladepop

View GitHub Profile
@bladepop
bladepop / 1.cs
Last active August 29, 2015 14:11 — forked from cuppster/1.cs
Fixed a bug in Deferred<T>:When(IEnumerable<Promise> promises) where using When on a collection that is already has done promises will cause the master promise to resolve before all off the promises in the collection has finished.
/*
modified from original source: https://bitbucket.org/mattkotsenas/c-promises/overview
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Promises