Closed cppcoffee closed 1 year ago
I use the opcua-client crate. I see that Client and Session are sync, Any suggestions on how to use them under tokio runtime?
opcua-client
Client
Session
Are opcua-client crate any plans to support async?
https://github.com/locka99/opcua/blob/master/lib/src/client/client.rs#L192
Hi, You can use tokio's task::spawn_blocking and use sync code inside.
task::spawn_blocking
Okay, I'll use task::spawn_blocking for this.
I use the
opcua-client
crate. I see thatClient
andSession
are sync, Any suggestions on how to use them under tokio runtime?Are
opcua-client
crate any plans to support async?https://github.com/locka99/opcua/blob/master/lib/src/client/client.rs#L192