-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[flatbuffers] Add pause() and resume() in DataProducer and DataConsumer #1104
[flatbuffers] Add pause() and resume() in DataProducer and DataConsumer #1104
Conversation
Why though? Seems less readable to me. |
Consistency. Majority won. It's easier if we don't use separators within entity/class names in FBS dictionaries. |
@nazar-pc is this a bug? In /// Callback is called when the producer is paused.
pub fn on_pause<F: Fn() + Send + Sync + 'static>(&self, callback: F) -> HandlerId {
self.inner().handlers.pause.add(Arc::new(callback))
} But nobody calls
|
|
I see. Thanks. Approve please 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
NOTE: This PR targets
flatbuffers
branch.Details
pause()
andresume()
inDataProducer
andDataConsumer
.paused
getter inDataProducer
andDataConsumer
.dataProducerPaused
getter inDataConsumer
.dataproducerpause
anddataproducerresume
events inDataConsumer
.pause
andresume
events inDataProducer.observer
andDataConsumer.observer
.paused?: boolean
intransport.consumeData()
andtransport.produceData()
.Bonus Tracks
WEBRTC_TRANSPORT
toWEBRTCTRANSPORT
,DATA_PRODUCER
toDATAPRODUCER
, etc etc everywhere.