Skip to content

v1.2.0

Compare
Choose a tag to compare
@Tradias Tradias released this 30 Oct 14:14
· 1160 commits to master since this release

Features

  • Provide CMake function: asio_grpc_protobuf_generate.
  • Add work tracking to all operations. This makes the behavior of GrpcContext similar to boost::asio::io_context. E.g. instead of writing
auto guard = boost::asio::make_work_guard(grpc_context);
boost::asio::post(grpc_context,
            []
            {
                guard.reset();
            });
grpc_context.run();

it is now sufficient to write:

boost::asio::post(grpc_context, [] {});
grpc_context.run();

Fixes

  • A GrpcContext is now stopped after returning from run() if there were no outstanding operations when the call was made.
  • GrpcExecutor::operator== would fail to compare executors with different execution properties.

Chore

  • Add CI pipelines for GCC 9.3.0, 11.1.0 and Clang 10.0.0, 11.0.0, 12.0.0.
  • Enable code coverage on sonarcloud.
  • Document how to shut down a gRPC server properly.