-
Notifications
You must be signed in to change notification settings - Fork 7
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
Completing Backpressure Deferrable Deadlocks #109
Comments
@nomisRev , I have published a demonstrator here: https://github.com/rsteppac/kotlin-signalhandler-demo/tree/develop I started out with When I run the executable and then try to interrupt it, then I get this output:
The second to last line is printed before the call to |
Kotlin version: 1.9.21
Native Platform build: linuxX64
OS: Ubuntu 23.10
I tried the "Simple Example" from the
README.MD
, but the backpressure communication via theCompletableDeferred<Int>
seems the get deadlocked and the simple example never terminates. Triggering the kill signal (SIGINT or SITGERM) gets correctly communicated to thearrow.continuations.unsafe.Unsafe#onShutdown
hook, but the shutdown hook never returns from the call toBACKPRESSURE.complete(..)
and the waiting signal handler never gets released. Providing a timeout toarrow.continuations.SuspendAppKt#SuspendApp
has no effect.The text was updated successfully, but these errors were encountered: