Files
api/docs/examples/promise/04_unsubscribe
Jaco Greeff 2dd7cc0e69 Typescript-eslint 2 (#1353)
* Make a start

* More minor cleanups

* Some more cleanups

* Last round?

* Exclude build folders
2019-09-02 07:01:32 +02:00
..
2019-09-02 07:01:32 +02:00
2019-05-22 11:45:32 +02:00

Unsubscribe from listening to updates

This example shows how to subscribe to and later unsubscribe from listening to block updates.

In this example we're calling the built-in unsubscribe() function after a timeOut of 20s to cleanup and unsubscribe from listening to updates.

<<< @/docs/examples/promise/04_unsubscribe/index.js