Skip to main content
←API Reference ←com.nianticspatial.nsdk.utils ←FlowPollingManager

destroy


Declaration​

fun destroy()

Summary​

Ends polling for good and completes every collection of flow, current and future. Called
when the NSDKSession is closed, after which the feature can never emit again; a collector that
outlives the session then finishes instead of waiting forever. Waits for a poll in flight.