CompleteLastly

Companion object that facilitates the importing of CompleteLastly members as an alternative to mixing it in.

Companion:
class
class Object
trait Matchable
class Any

Type members

Inherited classlikes

class ResultOfCompleteInvocation[T](futuristicBlock: => T, futuristic: Futuristic[T])

Class that provides the lastly method of the complete-lastly syntax.

Class that provides the lastly method of the complete-lastly syntax.

Value parameters:
futuristic

the futuristic typeclass instance

futuristicBlock

a by-name that produces a futuristic type

Inherited from:
CompleteLastly

Value members

Inherited methods

def complete[T](completeBlock: => T)(implicit futuristic: Futuristic[T]): ResultOfCompleteInvocation[T]

Registers a block of code that produces any "futuristic" type (any type F for which an implicit Futuristic[F] instance is implicitly available), returning an object that offers a lastly method.

Registers a block of code that produces any "futuristic" type (any type F for which an implicit Futuristic[F] instance is implicitly available), returning an object that offers a lastly method.

See the main documentation for trait CompleteLastly for more detail.

Value parameters:
completeBlock

cleanup code to execute whether the code passed to complete throws an exception or succesfully returns a futuristic value.

Inherited from:
CompleteLastly