lundi 15 mars 2021

What is the difference between spawn and co_spawn? (Boost Asio)

I'm trying to write a WebSocket client on top of Beast which makes use of coroutines.

I've found the functions spawn and co_spawn but, despite reading through the documentation, am not really sure of the difference between them.

Could somebody please explain what the advantages are of using one versus the other?

Aucun commentaire:

Enregistrer un commentaire