Adds examples for using ThreadPool executor and ProcessPool executor with asyncio. Additionally has an example for just writing an async handler as well.
When executing operations that dont support asyncio and can be blocking in nature such as network requests or any CPU heavy computations, its good to delegate them to ThreadPoolExecutor or a ProcessPoolExecutor.
Closes https://github.com/numaproj/numaflow-python/issues/52
Adds examples for using ThreadPool executor and ProcessPool executor with asyncio. Additionally has an example for just writing an async handler as well.
When executing operations that dont support asyncio and can be blocking in nature such as network requests or any CPU heavy computations, its good to delegate them to ThreadPoolExecutor or a ProcessPoolExecutor.