2023-06-16 14:40:23 +02:00
|
|
|
import sniffio
|
|
|
|
import structio
|
|
|
|
|
|
|
|
|
|
|
|
async def main():
|
|
|
|
backend = sniffio.current_async_library()
|
2023-06-16 14:58:28 +02:00
|
|
|
assert backend == "structured-io"
|
2023-06-16 14:40:23 +02:00
|
|
|
print(f"[main] Current async backend: {backend}")
|
|
|
|
|
|
|
|
|
|
|
|
structio.run(main)
|