Files
api/docs/examples/promise/04_unsubscribe
Jaco Greeff bdd1ca4f3d 0.79 (#944)
* 0.79

* @polkadot/api -> *
2019-05-22 11:45:32 +02:00
..
2019-02-16 12:25:53 +01: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