We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 452102c commit bc6e103Copy full SHA for bc6e103
src/nodepp/generator.h
@@ -74,14 +74,14 @@ namespace nodepp { namespace _promise_ {
74
template< class T, class U, class V >
75
coEmit( ptr_t<bool> state, const T& func, const U& res, const V& rej ){
76
gnStart
77
- func( res, rej ); while( *state!=0 ) { coNext; }
+ func( res, rej ); while( *state==1 ) { coNext; }
78
gnStop
79
}
80
81
template< class T, class U >
82
coEmit( ptr_t<bool> state, const T& func, const U& res ){
83
84
- func( res ); while( *state!=0 ) { coNext; }
+ func( res ); while( *state==1 ) { coNext; }
85
86
87
@@ -346,4 +346,4 @@ namespace nodepp { namespace _poll_ {
346
347
}}
348
#undef NODEPP_GENERATOR
349
-#endif
+#endif
0 commit comments