What `invoke` returns for a client of `spans`: the synchronous one, or else the asynchronous one, awaited.
(sync: bool, spans: Spans, invoke: Callable[[Any], Any], **options: Any)
| 2902 | |
| 2903 | |
| 2904 | async def call_client(sync: bool, spans: Spans, invoke: Callable[[Any], Any], **options: Any) -> Any: |
| 2905 | """What `invoke` returns for a client of `spans`: the synchronous one, or else the asynchronous one, awaited.""" |
| 2906 | if sync: |
| 2907 | return invoke(make_client(spans, **options)) |
| 2908 | return await invoke(make_async_client(spans, **options)) |
| 2909 | |
| 2910 | |
| 2911 | SYNC_AND_ASYNC = pytest.mark.parametrize("sync", [True, False], ids=["sync", "async"]) |
no test coverage detected