co v2.0.3 released
New features
- Add str::cat(...), fastream::cat(...), fastring::cat(...)
fastring s("hello");
s.cat(' ', 23, "xx", false); // s -> "hello 23xxfalse"
s = str::cat("hello", ' ', 23, true); // s -> "hello 23true"
-
Support writing logs to customed destinations by setting a writing callback in co/log.
-
Support daily rotation and log compression for co/log. Thanks to kuyoonjo. Compression is experimental at present.
-
Add method
reset()
forfastring
&fastream
. -
Add method
exit()
forhttp::Server
&rpc::Server
. -
Add co::maybe.
-
Add os::system().
-
Add some god-oriented programming features in co/god.h.
Changed
-
Improve
exit()
method fortcp::Server
. -
Memory optimization for coroutines.
-
Improve
operator<<
forfastream
&fastring
, optimization for string literal.
Bugs fixed
-
Fix a bug in destructor of co::Event.
-
Fix a bug at exit in #189.