You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defget_producer():
tool=Tool()
asyncdefstart(listener):
defon_event(event):
listener(event)
tool.on_scan_result=on_eventtool.start_scan()
awaittool.transport.drain()
asyncdefstop():
tool.stop_scanning()
awaittool.transport.drain()
return { "start": start, "stop": stop } # my old api.returnAsyncObservable( # what goes here? )
And I'd like to be able to turn it into an observable stream, that automatically starts/stops scanning when the obserables are added/removed but I'm not sure how.
The text was updated successfully, but these errors were encountered:
I've got a functions:
And I'd like to be able to turn it into an observable stream, that automatically starts/stops scanning when the obserables are added/removed but I'm not sure how.
The text was updated successfully, but these errors were encountered: