ActualCost returns the tracked cost through the course of execution when `CostTracking` is enabled. Otherwise, returns nil if the cost was not enabled.
()
| 155 | // ActualCost returns the tracked cost through the course of execution when `CostTracking` is enabled. |
| 156 | // Otherwise, returns nil if the cost was not enabled. |
| 157 | func (ed *EvalDetails) ActualCost() *uint64 { |
| 158 | if ed == nil || ed.costTracker == nil { |
| 159 | return nil |
| 160 | } |
| 161 | cost := ed.costTracker.ActualCost() |
| 162 | return &cost |
| 163 | } |
| 164 | |
| 165 | // EvalResult encapsulates the response from a ConcurrentEval call. |
| 166 | type EvalResult struct { |
no outgoing calls