class documentation

class TestService: (source)

Known subclasses: temporalio.service.TestService

Constructor: TestService(client)

View In Hierarchy

RPC calls for the TestService.

Method __init__ Initialize service with the provided ServiceClient.
Async Method get_current_time Invokes the TestService.get_current_time rpc method.
Async Method lock_time_skipping Invokes the TestService.lock_time_skipping rpc method.
Async Method sleep Invokes the TestService.sleep rpc method.
Async Method sleep_until Invokes the TestService.sleep_until rpc method.
Async Method unlock_time_skipping Invokes the TestService.unlock_time_skipping rpc method.
Async Method unlock_time_skipping_with_sleep Invokes the TestService.unlock_time_skipping_with_sleep rpc method.
Instance Variable _client Undocumented
Instance Variable _service Undocumented
def __init__(self, client: ServiceClient): (source)

Initialize service with the provided ServiceClient.

async def get_current_time(self, req: google.protobuf.empty_pb2.Empty, retry: bool = False, metadata: Mapping[str, str | bytes] = {}, timeout: timedelta | None = None) -> temporalio.api.testservice.v1.GetCurrentTimeResponse: (source)

Invokes the TestService.get_current_time rpc method.

Invokes the TestService.lock_time_skipping rpc method.

Invokes the TestService.sleep rpc method.

Invokes the TestService.sleep_until rpc method.

Invokes the TestService.unlock_time_skipping rpc method.

async def unlock_time_skipping_with_sleep(self, req: temporalio.api.testservice.v1.SleepRequest, retry: bool = False, metadata: Mapping[str, str | bytes] = {}, timeout: timedelta | None = None) -> temporalio.api.testservice.v1.SleepResponse: (source)

Invokes the TestService.unlock_time_skipping_with_sleep rpc method.

Undocumented

_service: str = (source)

Undocumented