Skip to content

Commit

Permalink
Update generator.h
Browse files Browse the repository at this point in the history
  • Loading branch information
EDBCREPO authored Nov 30, 2024
1 parent 452102c commit bc6e103
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/nodepp/generator.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ namespace nodepp { namespace _promise_ {
template< class T, class U, class V >
coEmit( ptr_t<bool> state, const T& func, const U& res, const V& rej ){
gnStart
func( res, rej ); while( *state!=0 ) { coNext; }
func( res, rej ); while( *state==1 ) { coNext; }
gnStop
}

template< class T, class U >
coEmit( ptr_t<bool> state, const T& func, const U& res ){
gnStart
func( res ); while( *state!=0 ) { coNext; }
func( res ); while( *state==1 ) { coNext; }
gnStop
}

Expand Down Expand Up @@ -346,4 +346,4 @@ namespace nodepp { namespace _poll_ {

}}
#undef NODEPP_GENERATOR
#endif
#endif

0 comments on commit bc6e103

Please sign in to comment.