Skip to content
This repository has been archived by the owner on Oct 9, 2022. It is now read-only.

Commit

Permalink
misc improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Dec 20, 2018
1 parent e3e44be commit b9da48c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dom.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ Notice that *clickMe.getValue() doesn't return a String, it returns a *Completab
This is because retrieving something from the DOM requires some communication with the browser and
will take some time - and we don't want to block while we wait.
This example is a little pointless since we're just setting the value and then immediately reading it, but it becomes
a lot more useful once you know how to attach event listeners to DOM elements.

This allows us to take advantage of Kotlin's `coroutines <https://kotlinlang.org/docs/reference/coroutines/basics.html>`_
functionality to make this fairly seamless to the programmer (using *GlobalScope.launch* and *await()*).

Yes, this example is a little pointless since we're just setting the value and then immediately reading it, more
realistic use cases will follow.

Listening for events
--------------------

Expand Down

0 comments on commit b9da48c

Please sign in to comment.