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
Currently the jsonrpc-derive crate can only work with either Result or BoxFuture return types (see #565). Unfortunatelly traits don't support async methods yet, but there are polyfills like async-trait.
Long term, since derive is more opinionated than core, I think we should get rid of synchronous methods and require the jsonrpc-derive traits to have all methods async. This will simplify code handling (see WrapFuture) and would allow returning custom futures without Box::pining them.
The text was updated successfully, but these errors were encountered:
Currently the
jsonrpc-derive
crate can only work with eitherResult
orBoxFuture
return types (see #565). Unfortunatelly traits don't supportasync
methods yet, but there are polyfills likeasync-trait
.Long term, since
derive
is more opinionated thancore
, I think we should get rid of synchronous methods and require thejsonrpc-derive
traits to have all methodsasync
. This will simplify code handling (seeWrapFuture
) and would allow returning custom futures withoutBox::pin
ing them.The text was updated successfully, but these errors were encountered: