2014-03-16 20:32:14 -07:00
|
|
|
# beast::asio
|
|
|
|
|
|
|
|
|
|
Wrappers and utilities to make working with boost::asio easier.
|
|
|
|
|
|
|
|
|
|
## Rules for asynchronous objects
|
|
|
|
|
|
|
|
|
|
If an object calls asynchronous initiating functions it must either:
|
|
|
|
|
|
2015-08-03 10:56:03 -04:00
|
|
|
1. Manage its lifetime by being reference counted
|
2014-03-16 20:32:14 -07:00
|
|
|
|
2015-08-03 10:56:03 -04:00
|
|
|
or
|
2014-03-16 20:32:14 -07:00
|
|
|
|
2015-08-03 10:56:03 -04:00
|
|
|
2. Wait for all pending completion handlers to be called before
|
|
|
|
|
allowing itself to be destroyed.
|