This question is similar to Sync function invoking async but I'm seeking advice anyway:
I'm implementing this trait https://docs.rs/oxide-auth/0.5.0-preview.0/oxide_auth/endpoint/trait.OwnerSolicitor.html and inside, I can call async version of an API to access an LDAP server (using ldap3 0.7-alpha7).
The sync version of ldap3 0.7 does a
block_on and as my trait implementation already run in Tokio executor (through
warp) I would need to use
spawn_blocking as suggested here but I'm wondering if there is a way to call the async version of
ldap3 in my trait implementation so I won't block.