@@ -102,15 +102,15 @@ public class _ActorContext<Message: Codable> /* TODO(sendable): NOTSendable*/ {
102102 public func watch< Watchee> (
103103 _ watchee: Watchee ,
104104 with terminationMessage: Message ? = nil ,
105- file: String = #file , line: UInt = #line
105+ file: String = #filePath , line: UInt = #line
106106 ) -> Watchee where Watchee: _DeathWatchable {
107107 _undefined ( )
108108 }
109109
110110 @discardableResult
111111 public func unwatch< Watchee> (
112112 _ watchee: Watchee ,
113- file: String = #file , line: UInt = #line
113+ file: String = #filePath , line: UInt = #line
114114 ) -> Watchee where Watchee: _DeathWatchable {
115115 _undefined ( )
116116 }
@@ -123,7 +123,7 @@ public class _ActorContext<Message: Codable> /* TODO(sendable): NOTSendable*/ {
123123 _ naming: _ActorNaming ,
124124 of type: M . Type = M . self,
125125 props: _Props = _Props ( ) ,
126- file: String = #file , line: UInt = #line,
126+ file: String = #filePath , line: UInt = #line,
127127 _ behavior: _Behavior < M >
128128 ) throws -> _ActorRef < M >
129129 where M: Codable
@@ -142,7 +142,7 @@ public class _ActorContext<Message: Codable> /* TODO(sendable): NOTSendable*/ {
142142 _ naming: _ActorNaming ,
143143 of type: M . Type = M . self,
144144 props: _Props = _Props ( ) ,
145- file: String = #file , line: UInt = #line,
145+ file: String = #filePath , line: UInt = #line,
146146 _ behavior: _Behavior < M >
147147 ) throws -> _ActorRef < M >
148148 where M: Codable
@@ -192,7 +192,7 @@ public class _ActorContext<Message: Codable> /* TODO(sendable): NOTSendable*/ {
192192 /// - Parameter callback: the closure that should be executed in this actor's context
193193 /// - Returns: an `AsynchronousCallback` that is safe to call from outside of this actor
194194 @usableFromInline
195- internal func makeAsynchronousCallback< T> ( file: String = #file , line: UInt = #line, _ callback: @escaping ( T ) throws -> Void ) -> AsynchronousCallback < T > {
195+ internal func makeAsynchronousCallback< T> ( file: String = #filePath , line: UInt = #line, _ callback: @escaping ( T ) throws -> Void ) -> AsynchronousCallback < T > {
196196 AsynchronousCallback ( callback: callback) { [ weak selfRef = self . myself. _unsafeUnwrapCell] in
197197 selfRef? . sendClosure ( file: file, line: line, $0)
198198 }
@@ -209,7 +209,7 @@ public class _ActorContext<Message: Codable> /* TODO(sendable): NOTSendable*/ {
209209 /// - Parameter callback: the closure that should be executed in this actor's context
210210 /// - Returns: an `AsynchronousCallback` that is safe to call from outside of this actor
211211 @usableFromInline
212- internal func makeAsynchronousCallback< T> ( for type: T . Type , file: String = #file , line: UInt = #line, callback: @escaping ( T ) throws -> Void ) -> AsynchronousCallback < T > {
212+ internal func makeAsynchronousCallback< T> ( for type: T . Type , file: String = #filePath , line: UInt = #line, callback: @escaping ( T ) throws -> Void ) -> AsynchronousCallback < T > {
213213 AsynchronousCallback ( callback: callback) { [ weak selfRef = self . myself. _unsafeUnwrapCell] in
214214 selfRef? . sendClosure ( file: file, line: line, $0)
215215 }
@@ -280,7 +280,7 @@ public class _ActorContext<Message: Codable> /* TODO(sendable): NOTSendable*/ {
280280 /// - timeout: time after which the _AsyncResult will be failed if it does not complete
281281 /// - continuation: continuation to run after `_AsyncResult` completes.
282282 /// It is safe to access and modify actor state from here.
283- internal func onResultAsync< AR: _AsyncResult > ( of _AsyncResult: AR , timeout: Duration , file: String = #file , line: UInt = #line, _ continuation: @escaping ( Result < AR . Value , Error > ) throws -> _Behavior < Message > ) {
283+ internal func onResultAsync< AR: _AsyncResult > ( of _AsyncResult: AR , timeout: Duration , file: String = #filePath , line: UInt = #line, _ continuation: @escaping ( Result < AR . Value , Error > ) throws -> _Behavior < Message > ) {
284284 let asyncCallback = self . makeAsynchronousCallback ( for: Result < AR . Value , Error > . self, file: file, line: line) {
285285 let nextBehavior = try continuation ( $0)
286286 let shell = self . _downcastUnsafe
0 commit comments