Skip to content

co v2.0.3 released

Compare
Choose a tag to compare
@idealvin idealvin released this 13 Nov 08:29
· 530 commits to master since this release

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() for fastring & fastream.

  • Add method exit() for http::Server & rpc::Server.

  • Add co::maybe.

  • Add os::system().

  • Add some god-oriented programming features in co/god.h.

Changed

  • Improve exit() method for tcp::Server.

  • Memory optimization for coroutines.

  • Improve operator<< for fastream & fastring, optimization for string literal.

Bugs fixed