Skip to content

Commit e26c572

Browse files
authored
Fix instrumentation for short sync effects (#5)
* Fix instrumentation for short sync effects ReactiveSwift can call "started" after "completed" in some cases * Revert disposed -> interrupted
1 parent d0dacb2 commit e26c572

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Sources/ComposableArchitecture/Debugging/ReducerInstrumentation.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,9 @@ extension Effect where Error == Never {
6262
let sid = OSSignpostID(log: log)
6363

6464
return self.on(
65-
started: {
65+
starting: {
6666
os_signpost(
67-
.begin, log: log, name: "Effect", signpostID: sid, "%sStarted from %s", prefix,
68-
actionOutput
67+
.begin, log: log, name: "Effect", signpostID: sid, "%sStarted from %s", prefix, actionOutput
6968
)
7069
},
7170
completed: {

0 commit comments

Comments
 (0)