Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to support asynchronous functions? #30

Open
mrocklin opened this issue Dec 16, 2019 · 1 comment
Open

How to support asynchronous functions? #30

mrocklin opened this issue Dec 16, 2019 · 1 comment

Comments

@mrocklin
Copy link
Member

Much of the distributed codebase should probably be tested with async def functions. Does anyone have experience here? A quick web search doesn't list much.

@TomAugspurger
Copy link
Member

I think Antoine's setup in https://github.com/dask/dask-benchmarks/blob/master/distributed/benchmarks/comm.py#L16 may work. The function to be timed is a normal callable

    def time_tcp_connect(self):
        self._time_connect('tcp://127.0.0.1')

which calls a callable that calls run_sync

    def _time_connect(self, address):
        run_sync(self.loop, partial(self._main, address))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants