MCPcopy Index your code
hub / github.com/pathwaycom/pathway / TestAsyncTransformer

Class TestAsyncTransformer

python/pathway/tests/test_async_transformer.py:40–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 ret: int
39
40 class TestAsyncTransformer(pw.AsyncTransformer, output_schema=OutputSchema):
41 async def invoke(self, value: int) -> dict[str, Any]:
42 await asyncio.sleep(random.uniform(0, 0.1))
43 return dict(ret=value + 1)
44
45 input_table = T(
46 """

Callers 15

test_simpleFunction · 0.85
test_file_ioFunction · 0.85
test_idempotencyFunction · 0.85
test_filter_failuresFunction · 0.85
test_assert_schema_errorFunction · 0.85
pipelineFunction · 0.85
test_with_instanceFunction · 0.85
test_failedFunction · 0.85

Calls

no outgoing calls

Tested by 15

test_simpleFunction · 0.68
test_file_ioFunction · 0.68
test_idempotencyFunction · 0.68
test_filter_failuresFunction · 0.68
test_assert_schema_errorFunction · 0.68
pipelineFunction · 0.68
test_with_instanceFunction · 0.68
test_failedFunction · 0.68