Thoughts on async? #40
Labels
discussion
Discussion encouraged. If this is preparation for a PR, it likely has no agreed implementation yet.
enhancement
New feature or request
I'm doing some networking (with
tonic
) and I'm ending up with atokio
runtime andasync fn
s.I see
ApplicationContext::new
expects non-async function pointers and usesstd::sync::mpsc{Sender,Receiver}
.Connecting my networking stuff and appctx callbacks is a bit awkward: it involves a mutex and some thought to give to the
Receiver
(which does not implementSend
).Are there any plans to move to using async functions in
ApplicationContext
?tokio
hasSend
MPSC channels.Communication could be thread-safe I guess?
I'm more concerned over the inconvenience that using
async
with libreMarkable is right now.The text was updated successfully, but these errors were encountered: