Using Async on the XRP

I’m working on modifying a Spike Prime reinforcement learning example for use with the XRP. On the spike prime code the runloop library is imported to allow for asynchronous coding. I tried to substitute this for the asyncio library (which is part of the default python library), however this isn’t part of the XRP’s micropython library. Is there a way to port over an async library to the XRP?

Micropython does provide for an asyncio library.
https://docs.micropython.org/en/latest/library/asyncio.html

I was able to import asyncio on an XRP. Can you give more details about what you are looking for if this version of asyncio does not work for you?

Thanks frank! I just used help(‘modules’) to look for asyncio in the list of modules. I didn’t see asyncio, but I did find uasyncio and was able to import it successfully. I haven’t tried to implement anything using it yet, but from what I can tell from a glance it should work.