Sets the boolean value and notifies any waiting coroutines if the condition is satisfied.
the new boolean value.