# RuntimeError: There is no current event loop in thread 'Thread-1'

- **ID:** `python/asyncio-loop-created-in-thread`
- **Domain:** python
- **Category:** runtime_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

Attempting to use asyncio functions in a thread without a running event loop.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.7 | active | — | — |
| 3.8 | active | — | — |
| 3.9 | active | — | — |
| 3.10 | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   loop = asyncio.new_event_loop(); asyncio.set_event_loop(loop); loop.run_until_complete(coro())
   ```
2. **** (90% success)
   ```
   future = asyncio.run_coroutine_threadsafe(coro(), loop)
   ```

## Dead Ends

- **** — In Python 3.10+, it may raise an error or return a closed loop. (70% fail)
- **** — asyncio.run() creates a new loop, but it's not accessible from other threads. (50% fail)
