LxWorkerStat class
Performance metrics for an LxWorker.
Tracks execution frequency, duration, and error states. Useful for profiling side-effects.
Constructors
Properties
- error → Object?
-
The last error that occurred during execution.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAsync → bool
-
Whether the callback is recognized as asynchronous (returns a Future).
final
- isProcessing → bool
-
Whether an asynchronous callback is currently pending completion.
final
- lastDuration → Duration
-
The duration of the last execution.
final
- lastRun → DateTime?
-
The time of the last execution.
final
- runCount → int
-
How many times the worker callback has run.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- totalDuration → Duration
-
The cumulative duration of all executions.
final
Methods
-
copyWith(
{int? runCount, Duration? lastDuration, Duration? totalDuration, DateTime? lastRun, Object? error, bool? isAsync, bool? isProcessing}) → LxWorkerStat - Creates a copy of the statistics with updated fields.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited