Skip to content

Build in queue waiting feature to task_submitter #152

@miketynes

Description

@miketynes

A common pattern in Thinker methods decorated with task_submitter is to begin with something like

while True:
  try:
    data = self.queue.get(block=True, timeout=1)
  except Empty:
    if self.done.is_set():
      return
  else:
    break

having this be an optional feature of the task_submitter is desirable to reduce boilerplate and provide this functionality to users directly

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions