Skip to content

Commit

Permalink
Improved co
Browse files Browse the repository at this point in the history
  • Loading branch information
andot committed Dec 5, 2016
1 parent a8a01b6 commit 4831639
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Future.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* *
* hprose Future for WeChat App. *
* *
* LastModified: Nov 24, 2016 *
* LastModified: Dec 5, 2016 *
* Author: Ma Bingyao <andot@hprose.com> *
* *
\**********************************************************/
Expand Down Expand Up @@ -309,7 +309,7 @@
}

if (!gen || typeof gen.next !== 'function') {
return toPromise(gen);
return toFuture(gen);
}

var future = new Future();
Expand Down

0 comments on commit 4831639

Please # to comment.