Skip to content

Conversation

@steve-the-edwards
Copy link
Contributor

@steve-the-edwards steve-the-edwards commented Dec 4, 2024

Some have been long deprecated, others more recently deprecated (the anonymous actions and eventHandlers - but we have not received any concerns regarding removing them - #1236, https://workflow-community.slack.com/archives/CHTFPR277/p1732635078961279?thread_ts=1730740915.096009&cid=CHTFPR277)

Also, prefix eventHandler debuggingNames with eH:

// to immediately resume on suspension inside block when it is crossinline.
// See https://youtrack.jetbrains.com/issue/KT-31197.
noinline block: suspend () -> OutputT?
crossinline block: suspend () -> OutputT?
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also changed this to crossinline as that issue was fixed a number of years ago.

* TODO: https://github.com/square/workflow-kotlin/issues/526 once this is removed.
*/
@Suppress("DEPRECATION")
public fun Completable.asWorker(): Worker<Nothing> = Worker.createSideEffect { await() }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

One would just use

runningSideEffect { myCompletable.await() }

Copy link
Collaborator

@zach-klippenstein zach-klippenstein left a comment

Choose a reason for hiding this comment

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

I love deleting code! This extremely violates semver but discussed offline and since we don't think this library has many users other than us, we don't care.

@steve-the-edwards steve-the-edwards merged commit cd7485e into main Dec 4, 2024
30 checks passed
@steve-the-edwards steve-the-edwards deleted the sedwards/remove-anon branch December 4, 2024 16: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