Skip to content

example on README page contains a typo #5

@skgbanga

Description

@skgbanga

In your python talk, at 33.34 you talked about how you could have made a mistake by calling join on worker group instead of the queue. https://youtu.be/U66KuyD3T0M?t=33m35s

Seems like you have made that in the example on the README page.

def main():
    q = thredo.Queue()
    with thredo.ThreadGroup(wait=None) as workers:
        for n in range(4):
            workers.spawn(worker, q)

        for n in range(10):
            q.put(n)
            thredo.sleep(1)

        workers.join()     # should be q.join()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions