apply

Details on parameters and result can be found here.

A Result instance can be obtained by invoking one of Scope.success or Scope.failure.