Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be more consistent with task names #5535

Merged
merged 1 commit into from
Oct 6, 2019
Merged

Conversation

swankjesse
Copy link
Collaborator

Examples:

  • OkHttp TaskRunner
  • MockWebServer TaskRunner
  • OkHttp ConnectionPool
  • MockWebServer localhost applyAndAckSettings
  • OkHttp android.com applyAndAckSettings
  • OkHttp android.com onSettings
  • OkHttp awaitIdle
  • OkHttp localhost

I'm trying to use type names where appropriate, or method names otherwise.
Names include hostname and stream name if the task is working on behalf
of a specific stream or connection.

@@ -48,7 +48,7 @@ package okhttp3.internal.concurrent
*/
abstract class Task(
val name: String,
val cancelable: Boolean = true
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved the default value to TaskQueue.schedule(). (I don’t like repeating the defaults; I find that hard to reason about.)

@swankjesse swankjesse force-pushed the jwilson.1006.task_names branch from 9aa6c5c to 38d1d04 Compare October 6, 2019 14:07
Examples:
  - OkHttp TaskRunner
  - MockWebServer TaskRunner
  - OkHttp ConnectionPool
  - MockWebServer localhost applyAndAckSettings
  - OkHttp android.com applyAndAckSettings
  - OkHttp android.com onSettings
  - OkHttp awaitIdle
  - OkHttp localhost

I'm trying to use type names where appropriate, or method names otherwise.
Names include hostname and stream name if the task is working on behalf
of a specific stream or connection.
@swankjesse swankjesse force-pushed the jwilson.1006.task_names branch from 38d1d04 to 4ec26dc Compare October 6, 2019 14:16
@swankjesse swankjesse mentioned this pull request Oct 6, 2019
15 tasks
@swankjesse swankjesse merged commit b40fc52 into master Oct 6, 2019
@swankjesse swankjesse deleted the jwilson.1006.task_names branch January 1, 2020 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants