'Wake ``n`` waiters.'

def notify(self, n=1):

    waiters = []
    while (n and self._waiters):
        waiter = self._waiters.popleft()
        if (not waiter.done()):
            n -= 1
            waiters.append(waiter)
    for waiter in waiters:
        waiter.set_result(True)
