afterAttemptPrimitive

fun afterAttemptPrimitive(primitive: Primitive, timeBefore: Long, success: Primitive.Result): Primitive.Result

The given primitive has just executed; do any necessary post-processing.

Return

The same Result that was passed, to make calling simpler.

Parameters

primitive

The primitive that just ran.

timeBefore

The time in nanoseconds just prior to the primitive running.

success

The Result of running the primitive, indicating whether it succeeded, failed, etc.