Function async_ffi_double

Source
pub(crate) async fn async_ffi_double<T1, T2, F>(
    f: F,
) -> Result<(T1, T2), SodotError>
where T1: FromFFI, T2: FromFFI, for<'a> F: FnOnce(CallbackData<'a, Option<unsafe extern "C" fn(*mut c_void, ResultFFI, ConstStr, ConstStr)>>) -> ResultFFI,
Expand description

The same as async_ffi_single, but for two output values. Should be used for any async executor accepting a callback of type: fn(*mut c_void, ResultFFI, ConstStr, ConstStr)