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

Paramaterize the return type of Worker.finished() to make it more convenient to use in tests. #884

Merged
merged 1 commit into from Jan 16, 2020

Conversation

zach-klippenstein
Copy link
Collaborator

It was initially like this, and then I switched it to Nothing to make the function simpler,
but I just realized that most of the uses do a cast anyway so it's better to just have a more
generic type. This is also more consistent with emptyList(), emptyFlow(), etc.

cc @ellapolo

…venient to use in tests.

It was initially like this, and then I switched it to `Nothing` to make the function simpler,
but I just realized that most of the uses do a cast anyway so it's better to just have a more
generic type. This is also more consistent with `emptyList()`, `emptyFlow()`, etc.
@zach-klippenstein zach-klippenstein added enhancement New feature or request testing labels Jan 16, 2020
@zach-klippenstein zach-klippenstein added this to the kotlin v0.23.0 milestone Jan 16, 2020
@zach-klippenstein zach-klippenstein added this to Needs review in Workflow (Kotlin) via automation Jan 16, 2020
@zach-klippenstein zach-klippenstein merged commit 7d8e885 into master Jan 16, 2020
Workflow (Kotlin) automation moved this from Needs review to Done Jan 16, 2020
@zach-klippenstein zach-klippenstein deleted the zachklipp/worker-finished-type branch January 16, 2020 23:39
@zach-klippenstein zach-klippenstein added the kotlin Affects the Kotlin library. label Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request kotlin Affects the Kotlin library. testing
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants