and the right answer is to treat this as a template which has two transform_X slots and code generate the sync and async versions, you then generate sync and async client classes and just make the class you want to use once and use it without any more ceremony. If superfunctions was the cure I'd rather have the disease.
PaulHoule•6h ago
Note that the most common use case for this is an API client where you are writing a large number of methods that look like
and the right answer is to treat this as a template which has two transform_X slots and code generate the sync and async versions, you then generate sync and async client classes and just make the class you want to use once and use it without any more ceremony. If superfunctions was the cure I'd rather have the disease.