lsergiy

Results comments of lsergiy

This functionality is precious part of effective asynchronous app. I am experimenting with it. Everything works so far. I can use **Nodepp** in multiple C++ files also. ### Thanks!

Please notice, all the C++ namespace usage modifications needed to do are in range code range within [ `coDelay` ... `onMain` ] ```C++ /*────────────────────────────────────────────────────────────────────────────*/ #define coDelay(VALUE) do { _time_=nodepp::process::millis()+VALUE; while(...

P.S. There is one more macro function with `[=]` near next line after `#define COROUTINE()` : ```C++ #define fn(...) [=]( __VA_ARGS__ ) ``` But looks like it's nowhere used in...

This is entire article! Not just an answer. Thank you! My knowledge of **Nodepp** was missing `ptr_t` and `type::*`

Crash can be reproduced on both Mac OSX and Linux OSes I have and it looks like logical error. Here is the call stack: ``` 1 nodepp::ptr_t::null ptr.h 360 0x5555557301ce...

I found workaround to avoid crash. I put call to `cli.close()` into delayed task executed soon in message loop of client thread: ```c++ console::log( "ws -> will delay task to...

Everything works! Thanks! Me is happy to help **Nodepp** to reach 100% ideal stable state.

Some additional explanation related to test app above. Both `stat_http_server` and `stat_http_client` can run event loop repeatedly calling `process::next();` but only if `p_is_continue_wait` pointer flag is not `nullptr`. It's not...