mirror of
https://github.com/corda/corda.git
synced 2025-01-30 16:14:39 +00:00
CORDA-2128: Made DEFAULT_TRACKER lambda private (#4493)
This commit is contained in:
parent
30b138a847
commit
1ae1e4909d
@ -95,6 +95,8 @@ abstract class FlowLogic<out T> {
|
||||
fiber.suspend(request, maySkipCheckpoint = maySkipCheckpoint)
|
||||
}
|
||||
}
|
||||
|
||||
private val DEFAULT_TRACKER = { ProgressTracker() }
|
||||
}
|
||||
|
||||
/**
|
||||
@ -345,7 +347,7 @@ abstract class FlowLogic<out T> {
|
||||
* Note that this has to return a tracker before the flow is invoked. You can't change your mind half way
|
||||
* through.
|
||||
*/
|
||||
open val progressTracker: ProgressTracker? = ProgressTracker.DEFAULT_TRACKER()
|
||||
open val progressTracker: ProgressTracker? = DEFAULT_TRACKER()
|
||||
|
||||
/**
|
||||
* This is where you fill out your business logic.
|
||||
|
@ -287,13 +287,6 @@ class ProgressTracker(vararg inputSteps: Step) {
|
||||
|
||||
/** Returns true if the progress tracker has ended, either by reaching the [DONE] step or prematurely with an error */
|
||||
val hasEnded: Boolean get() = _changes.hasCompleted() || _changes.hasThrowable()
|
||||
|
||||
companion object {
|
||||
val DEFAULT_TRACKER = { ProgressTracker() }
|
||||
}
|
||||
}
|
||||
// TODO: Expose the concept of errors.
|
||||
// TODO: It'd be helpful if this class was at least partly thread safe.
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user