There are to types for process callbacks:
The first one is not async, the second one is.
This is confusing for two reasons:
- Chronos is an async runtime, so you generally expect things to be async it it. The fact that HttpProcessCallback is not annotated with
async is surprising.
- The names of the types do not tell anything about their "asyncness" or lack thereof. I would thing these are an older and a newer version but there is no deprecation notice so they both must be valid and usable.
I suggest we rename either or both of those types, e.g.:
- HttpProcessCallback → HttpProcessCallbackSync (since async the default)
- HttpProcessCallback2 → HttpProcessCallback (no confusing 2 in the name)
There are to types for process callbacks:
The first one is not async, the second one is.
This is confusing for two reasons:
asyncis surprising.I suggest we rename either or both of those types, e.g.: