<p></p>
<blockquote>
<p>Why not do it like we did with <code>sock_async</code> and make it so that the event front-end (<code>event</code>, <code>msg</code>, <code>msgbus</code>, ...) can be picked by the user?</p>
</blockquote>
<p>So it boils down to a linked-list of callback functions that is attached to a SAUL sensor/actuator, right? These callbacks are called in the context of the eSAUL thread and may send a message, wake-up a thread, ...</p>
<p>Sry, I haven't had a dive into <code>sock_async</code>, yet. This is just an educated guess ;)</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/issues/14121#issuecomment-634005845">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYFCQFPYLSMLZHRZVRTRTO3XDANCNFSM4NIOMK5Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABE7WYCQHSSZPN5DWAFGN4TRTO3XDA5CNFSM4NIOMK52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEXFCSVI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/issues/14121#issuecomment-634005845",
"url": "https://github.com/RIOT-OS/RIOT/issues/14121#issuecomment-634005845",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>