Skip to content

Commit

Permalink
chore(client): use anyio.sleep instead of asyncio.sleep (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot authored Feb 27, 2024
1 parent ee0161c commit 2778a22
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/anthropic/_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
from __future__ import annotations

import time
import asyncio

import anyio

from ._base_client import SyncAPIClient, AsyncAPIClient

Expand Down Expand Up @@ -37,4 +38,4 @@ def __init__(self, client: AsyncAPIClient) -> None:
self._get_api_list = client.get_api_list

async def _sleep(self, seconds: float) -> None:
await asyncio.sleep(seconds)
await anyio.sleep(seconds)

0 comments on commit 2778a22

Please sign in to comment.