Block, watching for a particular value (indicated by Just).
Once a Just value is seen, stop subscribing, and return the
value. The Maybe Int argument specifies an optional timeout in
microseconds. If the function instead times out, then Nothing is
yielded.