can set result when condition notify

in my case, i hope waiters can get something when getting notified. I thins it useful for productor-consumer case, like a coroutine wait for redis pub something, and then notify all waiters to get the value.