jbaldwin / libcoro

C++20 coroutine library
Apache License 2.0
599 stars 62 forks source link

task promise use std::variant #200

Closed jbaldwin closed 1 year ago

jbaldwin commented 1 year ago

This is a step towards using a more modern container within the task promise and reduce some manual overhead around managing the unsigned char[] that would store the return value but retaining the benefits that that solution brought to the task's promise class.

Closes #196

jbaldwin commented 1 year ago

@a858438680 if you have some time I'd appreciate a review on this more modern take for the task optimizations.