HN user

syedMohib45

0 karma

Computer Scientist

Posts0
Comments10
View on HN
No posts found.

Thread safe ittertors? really are we still on these topics

lazy from typing import Iterator

def stream_events(...) -> Iterator[str]: while True: yield blocking_get_event(...)

events = stream_events(...)

for event in events: consume(event)