| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| co v2.0.3 released.tar.gz | 2021-11-12 | 286.6 kB | |
| co v2.0.3 released.zip | 2021-11-12 | 368.6 kB | |
| README.md | 2021-11-12 | 1.4 kB | |
| Totals: 3 Items | 656.6 kB | 0 | |
New features
-
Add str::cat(...), fastream::cat(...), fastring::cat(...)
:::sh 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].