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
Send a FreeSWITCH API command, blocking mode. That is, the FreeSWITCH instance won't accept any new commands until the api command finished execution.
free-socks currently supports sending multiple blocking and - perhaps soon - other commands by letting clients clone the Client instance. Preventing the clone would not solve the problem, because async functions can be used as futures and initiated concurrently as long &self is used. An alternative would be to prevent cloning by using &mut self, schedule blocking commands, or detect the race condition and return an error?
And what about events, can they be received in between?
The text was updated successfully, but these errors were encountered:
FreeSWITCH documentation states at https://developer.signalwire.com/freeswitch/FreeSWITCH-Explained/Modules/mod_event_socket_1048924/#31-api:
free-socks currently supports sending multiple blocking and - perhaps soon - other commands by letting clients clone the
Client
instance. Preventing the clone would not solve the problem, because async functions can be used as futures and initiated concurrently as long&self
is used. An alternative would be to prevent cloning by using&mut self
, schedule blocking commands, or detect the race condition and return an error?And what about events, can they be received in between?
The text was updated successfully, but these errors were encountered: