call

public static Call<R> call<R>(Callable<R> callable)(source)

Calls callable and returns a corresponding Call object. If the call of callable results in an CrashException, a throwable of type AssertionFailedError with message not implemented will be thrown directly.

Return

a Call object representing the callable

Parameters

callable

the callable to call

<R>

the type of the object returned by callable


public static Call<Void> call(Runnable runnable)(source)

Calls runnable and returns a corresponding Call object. If the call of runnable results in an CrashException, a throwable of type AssertionFailedError with message not implemented will be thrown directly.

Return

a Call object representing the callable

Parameters

runnable

the runnable to call