-
Notifications
You must be signed in to change notification settings - Fork 102
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
Remove Deprecated Worker, eventHandler, and action APIs #1237
Conversation
380be87
to
bf1154f
Compare
// 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? |
There was a problem hiding this comment.
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() } |
There was a problem hiding this comment.
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() }
bf1154f
to
960818c
Compare
There was a problem hiding this 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.
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
debuggingName
s witheH: