Skip to content

protocols

multifutures.ExecutorProtocol

Bases: typing.Protocol

__enter__

__enter__() -> typing_extensions.Self

__exit__

__exit__(
    exc_type: type[BaseException] | None,
    exc_val: BaseException | None,
    exc_tb: types.TracebackType | None,
) -> bool | None

submit

submit(
    fn: typing.Callable[..., typing.Any],
    /,
    *args: typing.Any,
    **kwargs: typing.Any,
) -> concurrent.futures.Future[typing.Any]

multifutures.ProgressBarProtocol

Bases: typing.Protocol

__enter__

__enter__() -> typing_extensions.Self

__exit__

__exit__(
    exc_type: type[BaseException] | None,
    exc_value: BaseException | None,
    traceback: types.TracebackType | None,
) -> bool | None

close

close() -> None

update

update(n: float | None) -> bool | None