use

@CheckReturnValue
abstract override fun use(context: SOContext): Completable

Registers to use a given context and completes once the context has been used successfully.

Using a context will handle switches to/from BLE/WIFI internally.

Please be aware, that due to internal processes, if you call use for a SOContext, the contextsInUse may emit a new item with the new context already contained before this Completable completes. However, the SOContext is only able to take subscriptions / publish items after the use Method has completed.

Scheduler: The returned Completable will operate on the IO Scheduler.

Return

a Completable which completes once the context has been initialized successfully.

Parameters

context

the SOContext to use.

See also