pl.clareo.coroutines.user
Interface ExitCondition<E>

Type Parameters:
E - type of value returned by yield
All Known Implementing Classes:
ExitOnYieldedEqualsTo

public interface ExitCondition<E>

Interface used to automatically close coroutine based on examination of last returned value.

Author:
Marcin Rzeźnicki
See Also:
CoIterator.till(ExitCondition)

Method Summary
 boolean exit(E yielded)
           
 

Method Detail

exit

boolean exit(E yielded)
Parameters:
yielded - last returned value
Returns:
true if no more results, produced by coroutine, are needed, false otherwise


Copyright © 2010 CLAREO. All Rights Reserved.