@@ -451,20 +451,20 @@ public final class Store<State, Action> {
451
451
message = """
452
452
An effect returned from the action " \( debugCaseOutput ( action) ) " completed on the \
453
453
wrong thread. Make sure to use " .receive(on:) " on any effects that execute on background \
454
- threads to receive their output on the initial thread.
454
+ threads to receive their output on the same thread the store was created on .
455
455
"""
456
456
457
457
case let . send( action, isFromViewStore: true ) :
458
458
message = """
459
459
" ViewStore.send( \( debugCaseOutput ( action) ) ) " was called on the wrong thread. Make \
460
- sure that " ViewStore.send " is always called on the initial thread.
460
+ sure that " ViewStore.send " is always called on the same thread the store was created on .
461
461
"""
462
462
463
463
case let . send( action, isFromViewStore: false ) :
464
464
message = """
465
465
An effect emitted the action " \( debugCaseOutput ( action) ) " from the wrong thread. Make sure \
466
466
to use " .receive(on:) " on any effects that execute on background threads to receive their \
467
- output on the initial thread.
467
+ output on the same thread the store was created on .
468
468
"""
469
469
}
470
470
@@ -478,8 +478,8 @@ public final class Store<State, Action> {
478
478
479
479
\( message)
480
480
481
- Initial thread : \( self . initialThread)
482
- Current thread : \( Thread . current)
481
+ Store created on : \( self . initialThread)
482
+ Action sent on : \( Thread . current)
483
483
484
484
The " Store " class is not thread-safe, and so all interactions with an instance of " Store " \
485
485
(including all of its scopes and derived view stores) must be done on the same thread.
0 commit comments