boost::corosio::tcp_server::launcher

Move‐only handle to launch a worker coroutine.

Synopsis

class launcher;

Description

Passed to worker_base::run to start the connection‐handling coroutine. The launcher ensures the worker returns to the idle pool when the coroutine completes or if launching fails.

The launcher must be invoked exactly once via operator(). If destroyed without invoking, the worker is returned to the idle pool automatically.

Member Functions

Name

Description

launcher [constructor] [deleted]

Constructors

~launcher [destructor]

Return the worker to the pool if not launched.

operator= [deleted]

Assignment operators

operator()

Launch the connection‐handling coroutine.

Friends

Name Description

boost::corosio::tcp_server

TCP server with pooled workers.

See Also

worker_base::run

Created with MrDocs