Home
last modified time | relevance | path

Searched refs:eventActor (Results 1 – 6 of 6) sorted by relevance

/external/kotlinx.coroutines/ui/kotlinx-coroutines-javafx/test/guide/
Dexample-ui-actor-02.kt65 val eventActor = GlobalScope.actor<MouseEvent>(Dispatchers.Main) { in onClick() constant
70 eventActor.offer(event) in onClick()
Dexample-ui-actor-03.kt65 …val eventActor = GlobalScope.actor<MouseEvent>(Dispatchers.Main, capacity = Channel.CONFLATED) { /… in onClick() constant
70 eventActor.offer(event) in onClick()
Dexample-ui-blocking-01.kt54 val eventActor = GlobalScope.actor<MouseEvent>(Dispatchers.Main, capacity = Channel.CONFLATED) { in onClick() constant
58 eventActor.offer(event) in onClick()
Dexample-ui-blocking-02.kt54 val eventActor = GlobalScope.actor<MouseEvent>(Dispatchers.Main, capacity = Channel.CONFLATED) { in onClick() constant
58 eventActor.offer(event) in onClick()
Dexample-ui-blocking-03.kt54 val eventActor = GlobalScope.actor<MouseEvent>(Dispatchers.Main, capacity = Channel.CONFLATED) { in onClick() constant
58 eventActor.offer(event) in onClick()
/external/kotlinx.coroutines/ui/
Dcoroutines-guide-ui.md266 val eventActor = GlobalScope.actor<MouseEvent>(Dispatchers.Main) {
271 eventActor.offer(event)
293 val eventActor = GlobalScope.actor<View>(Dispatchers.Main) {
298 eventActor.offer(it)
319 …val eventActor = GlobalScope.actor<MouseEvent>(Dispatchers.Main, capacity = Channel.CONFLATED) { /…
324 eventActor.offer(event)
330 On Android you need to update `val eventActor = ...` line from the previous example.
358 val eventActor = GlobalScope.actor<MouseEvent>(Dispatchers.Main, capacity = Channel.CONFLATED) {
362 eventActor.offer(event)