ResultOfCompleteInvocation

org.scalatest.CompleteLastly.ResultOfCompleteInvocation
class ResultOfCompleteInvocation[T](futuristicBlock: => T, futuristic: Futuristic[T])

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

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def lastly(lastlyBlock: => Unit): T

Registers cleanup code to be executed immediately if the future-producing code passed to complete throws an exception, or otherwise asynchronously, when the future returned by the code passed to complete itself completes.

Registers cleanup code to be executed immediately if the future-producing code passed to complete throws an exception, or otherwise asynchronously, when the future returned by the code passed to complete itself completes.

See the main documentation for trait CompleteLastly for more detail.

Value parameters

lastlyBlock

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

Attributes

override def toString: String

Pretty string representation of this class.

Pretty string representation of this class.

Attributes

Definition Classes
Any