nat.front_ends.fastapi.dask_client_mixin#

Classes#

DaskClientMixin

Helper class that provides a standard way to create an ABC using

Module Contents#

class DaskClientMixin#

Bases: abc.ABC

Helper class that provides a standard way to create an ABC using inheritance.

property dask_client: dask.distributed.Client#

Lazily initializes and returns a Dask Client connected to the specified scheduler address. Requires that the inheriting class has a _scheduler_address attribute.