Skip to content

Suggestion: Rename HttpProcessCallback2 or HttpProcessCallback #629

@moigagoo

Description

@moigagoo

There are to types for process callbacks:

The first one is not async, the second one is.

This is confusing for two reasons:

  1. 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.
  2. 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions