2020-06-10 00:27:52 -07:00
|
|
|
[zcash-android-wallet-sdk](../../index.md) / [cash.z.ecc.android.sdk](../index.md) / [Synchronizer](index.md) / [stop](./stop.md)
|
2019-03-28 23:31:25 -07:00
|
|
|
|
|
|
|
# stop
|
|
|
|
|
|
|
|
`abstract fun stop(): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)
|
|
|
|
|
2020-01-15 05:07:00 -08:00
|
|
|
Stop this synchronizer. Implementations should ensure that calling this method cancels all
|
|
|
|
jobs that were created by this instance.
|
2019-03-28 23:31:25 -07:00
|
|
|
|
2020-06-10 00:27:52 -07:00
|
|
|
Note that in most cases, there is no need to call [stop](./stop.md) because the Synchronizer will
|
|
|
|
automatically stop whenever the parentScope is cancelled. For instance, if that scope is
|
|
|
|
bound to the lifecycle of the activity, the Synchronizer will stop when the activity stops.
|
|
|
|
However, if no scope is provided to the start method, then the Synchronizer must be stopped
|
|
|
|
with this function.
|
|
|
|
|