@@ -273,7 +273,6 @@ public final class _ActorShell<Message: Codable>: _ActorContext<Message>, Abstra
273
273
///
274
274
/// Warning: Mutates the cell's behavior.
275
275
/// Returns: `true` if the actor remains alive, and `false` if it now is becoming `.stop`
276
- @inlinable
277
276
func interpretMessage( message: Message ) throws -> ActorRunResult {
278
277
do {
279
278
let next : _Behavior < Message > = try self . supervisor. interpretSupervised ( target: self . behavior, context: self , message: message)
@@ -481,7 +480,7 @@ public final class _ActorShell<Message: Codable>: _ActorContext<Message>, Abstra
481
480
/// MUST be preceded by an invocation of `restartPrepare`.
482
481
/// The two steps MAY be performed in different point in time; reason being: backoff restarts,
483
482
/// which need to suspend the actor, and NOT start it just yet, until the system message awakens it again.
484
- @ inlinable public func _restartComplete( with behavior: _Behavior < Message > ) throws -> _Behavior < Message > {
483
+ public func _restartComplete( with behavior: _Behavior < Message > ) throws -> _Behavior < Message > {
485
484
try behavior. validateAsInitial ( )
486
485
self . behavior = behavior
487
486
try self . interpretStart ( )
@@ -492,13 +491,11 @@ public final class _ActorShell<Message: Codable>: _ActorContext<Message>, Abstra
492
491
/// Always invoke `becomeNext` rather than assigning to `self.behavior` manually.
493
492
///
494
493
/// Returns: `true` if next behavior is .stop and appropriate actions will be taken
495
- @inlinable
496
494
internal func becomeNext( behavior next: _Behavior < Message > ) throws {
497
495
// TODO: handling "unhandled" would be good here... though I think type wise this won't fly, since we care about signal too
498
496
self . behavior = try self . behavior. canonicalize ( self , next: next)
499
497
}
500
498
501
- @inlinable
502
499
internal func interpretStart( ) throws {
503
500
// start means we need to evaluate all `setup` blocks, since they need to be triggered eagerly
504
501
traceLog_Cell ( " START with behavior: \( self . behavior) " )
@@ -509,7 +506,6 @@ public final class _ActorShell<Message: Codable>: _ActorContext<Message>, Abstra
509
506
510
507
/// Interpret a `resume` with the passed in result, potentially waking up the actor from `suspended` state.
511
508
/// Interpreting a resume NOT in suspended state is an error and should never happen.
512
- @inlinable
513
509
internal func interpretResume( _ result: Result < Any , Error > ) throws -> ActorRunResult {
514
510
switch self . behavior. underlying {
515
511
case . suspended( let previousBehavior, let handler) :
@@ -796,7 +792,7 @@ extension _ActorShell {
796
792
///
797
793
/// Mutates actor cell behavior.
798
794
/// May cause actor to terminate upon error or returning .stop etc from `.signalHandling` user code.
799
- @ inlinable func interpretTerminatedSignal( who dead: ActorID , terminated: _Signals . Terminated ) throws {
795
+ func interpretTerminatedSignal( who dead: ActorID , terminated: _Signals . Terminated ) throws {
800
796
#if SACT_TRACE_ACTOR_SHELL
801
797
self . log. info ( " Received terminated: \( dead) " )
802
798
#endif
@@ -852,7 +848,6 @@ extension _ActorShell {
852
848
853
849
/// Interpret a carried signal directly -- those are potentially delivered by plugins or custom transports.
854
850
/// They MAY share semantics with `Signals.Terminated`, in which case they would be interpreted accordingly.
855
- @inlinable
856
851
func interpretCarrySignal( _ signal: _Signal ) throws {
857
852
#if SACT_TRACE_ACTOR_SHELL
858
853
self . log. info ( " Received carried signal: \( signal) " )
@@ -867,13 +862,11 @@ extension _ActorShell {
867
862
}
868
863
}
869
864
870
- @inlinable
871
865
func interpretStop( ) throws {
872
866
self . children. stopAll ( )
873
867
try self . becomeNext ( behavior: . stop( reason: . stopByParent) )
874
868
}
875
869
876
- @inlinable
877
870
func interpretChildTerminatedSignal( who terminatedRef: _AddressableActorRef , terminated: _Signals . _ChildTerminated ) throws {
878
871
#if SACT_TRACE_ACTOR_SHELL
879
872
self . log. info ( " Received \( terminated) " )
0 commit comments