jdonaldson / promhx

A promise and functional reactive programming library for Haxe
MIT License
146 stars 24 forks source link

make then(f) call the function passed in synchronously if Promise already resolved #1

Closed wighawag closed 12 years ago

wighawag commented 12 years ago

Hi,

First of all, thank you for this nice library that makes handling asynchronous call far more clean.

My pull request concern this question: should not function then(f) call the callback synchronously if Promise already resolved (as specified in the doc)? If so then this pull request fix it but please check whether I did not forget something.

jdonaldson commented 12 years ago

You're right, this is a bug. I've manually made this change, and it's pushed.