executeBlockingOnRTCThread

fun <T> executeBlockingOnRTCThread(action: () -> T): T

Execute action synchronously on the RTC thread. The PeerConnection API is generally not thread safe, so all actions relating to peer connection objects should go through the RTC thread.

Sources

SDK source
Link copied to clipboard