# asyncio_accepts_context

> **Function** in `langchain_core`

📖 [View in docs](https://reference.langchain.com/python/langchain-core/runnables/utils/asyncio_accepts_context)

Check if asyncio.create_task accepts a `context` arg.

## Signature

```python
asyncio_accepts_context() -> bool
```

## Returns

`bool`

True if `asyncio.create_task` accepts a context argument, `False` otherwise.

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/02991cb4cf2063d51a07268edafb05fe53de1826/libs/core/langchain_core/runnables/utils.py#L126)