diff --git a/README.md b/README.md index 89c23dca..17afa985 100644 --- a/README.md +++ b/README.md @@ -319,7 +319,7 @@ For clients only: ```cpp agrpc::GrpcContext grpc_context{std::make_unique()}; ``` -snippet source | anchor +snippet source | anchor Add some work to the `grpc_context` and run it. Make sure to shutdown the `server` before destructing the `grpc_context`. Also destruct the `grpc_context` before destructing the `server`. A `grpc_context` can only be run on one thread at a time. @@ -341,7 +341,7 @@ It might also be helpful to create a work guard before running the `agrpc::GrpcC ```cpp std::optional guard{asio::require(grpc_context.get_executor(), asio::execution::outstanding_work_t::tracked)}; ``` -snippet source | anchor +snippet source | anchor ## Where to go from here?