Skip to content

Rename Task.forkAndForget to Task.startAndForget#972

Merged
Avasil merged 6 commits into
monix:masterfrom
Avasil:issue-877-task-start-and-forget
Aug 5, 2019
Merged

Rename Task.forkAndForget to Task.startAndForget#972
Avasil merged 6 commits into
monix:masterfrom
Avasil:issue-877-task-start-and-forget

Conversation

@Avasil
Copy link
Copy Markdown
Collaborator

@Avasil Avasil commented Aug 2, 2019

Fixes #877

final def void: Task[Unit] =
this.map(_ => ())

// Deprecation directly in `Task` to avoid binary breakage just before the release
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I was getting DirectMissingMethodProblem if I put it in Deprecations syntax so wanted to be safe

@alexandru
Copy link
Copy Markdown
Member

👍

@alexandru
Copy link
Copy Markdown
Member

@Avasil from a code organization perspective, I don't like leaving @deprecated methods on the classes themselves.

One idea would be to create a new trait for deprecated methods in the TaskDeprecated object and put this method there.

@Avasil
Copy link
Copy Markdown
Collaborator Author

Avasil commented Aug 4, 2019

@alexandru 👍

@Avasil Avasil merged commit 009c434 into monix:master Aug 5, 2019
@Avasil Avasil deleted the issue-877-task-start-and-forget branch August 21, 2019 07:15
mdedetrich pushed a commit to mdedetrich/monix that referenced this pull request Mar 28, 2020
* Rename `Task.forkAndForget` to `Task.startAndForget`

* Move deprecation to Task itself

* Move forkAndForget to separate trait

* Remove extra line
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.

Make a RT "fire and forget" function

2 participants