Skip to content

pykka hack in old code no longer works #257

@natumbri

Description

@natumbri

@jodal

The old code in mopidy-youtube includes the following hack:

            # # What was this for?  Whatever it was for, it doesn't work
            # # for pykka v4.3 onwards, since ThreadingFuture uses 
            # # a condition variable instead of a queue
            if not future._queue.empty():  # hack, no public is_set()
                continue

# if not future._queue.empty(): # hack, no public is_set()

It no longer works with the current version of pykka because Queue.queue is no longer used in ThreadingFuture. The code doesn't function correctly without it. Would somebody be able to explain what the old code was doing, and what a sensible replacement might be?

Cheers,
Nik

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