Files
api/docs/examples/promise/04_unsubscribe
Jaco Greeff 9dd0c6cfd8 Update examples for 0.90 (#1225)
* Update examples for 0.90

* Fix number typo

* Adapth to use timestamp.now (blockPeriod now in all versions)
2019-07-29 20:19:52 +02:00
..
2019-07-29 20:19:52 +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