-
Notifications
You must be signed in to change notification settings - Fork 50
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
Coroutines #16
Comments
Is it possible to use Coroutines with Kotlin-libui in Linux application? fun main() = runBlocking {
appWindow(
title = "Coroutine",
width = 500,
height = 500
) {
vbox {
button("Launch Coroutine") {
action {
async(Dispatchers.Main) {
printSomething()
}
}
}
}
}
}
suspend fun printSomething() {
println("Run");
} |
How does it not work? |
When I click on the Button, nothing happens. After closing the Box, "Run" is printed. |
|
Is it difficult to implement it myself? do you have any resources or sample code? |
You can implement you own |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Need to integrate coroutines support from
https://github.com/Kotlin/kotlinx.coroutines/tree/master/native
and add sample similar to
timer
but based on coroutines.The text was updated successfully, but these errors were encountered: