@ -898,56 +898,52 @@ public extension Publisher where Failure == Error {
// MARK: - C a l l I n f o
// MARK: - C a l l I n f o
private extension Storage {
private extension Storage {
// MARK: - C a l l I n f o
class CallInfo {
enum Behaviour {
private extension Storage {
case syncRead
class CallInfo {
case asyncRead
enum Behaviour {
case syncWrite
case syncRead
case asyncWrite
case asyncRead
}
case syncWrite
case asyncWrite
weak var storage : Storage ?
}
let file : String
let function : String
weak var storage : Storage ?
let line : Int
let file : String
let behaviour : Behaviour
let function : String
let line : Int
var callInfo : String {
let behaviour : Behaviour
let fileInfo : String = ( file . components ( separatedBy : " / " ) . last . map { " \( $0 ) : \( line ) - " } ? ? " " )
var callInfo : String {
let fileInfo : String = ( file . components ( separatedBy : " / " ) . last . map { " \( $0 ) : \( line ) - " } ? ? " " )
return " \( fileInfo ) \( function ) "
}
var isWrite : Bool {
return " \( fileInfo ) \( function ) "
switch behaviour {
}
case . syncWrite , . asyncWrite : return true
case . syncRead , . asyncRead : return false
var isWrite : Bool {
}
switch behaviour {
}
case . syncWrite , . asyncWrite : return true
var isAsync : Bool {
case . syncRead , . asyncRead : return false
switch behaviour {
case . asyncRead , . asyncWrite : return true
case . syncRead , . syncWrite : return false
}
}
}
}
init (
var isAsync : Bool {
_ storage : Storage ? ,
switch behaviour {
_ file : String ,
case . asyncRead , . asyncWrite : return true
_ function : String ,
case . syncRead , . syncWrite : return false
_ line : Int ,
_ behaviour : Behaviour
) {
self . storage = storage
self . file = file
self . function = function
self . line = line
self . behaviour = behaviour
}
}
}
}
init (
_ storage : Storage ? ,
_ file : String ,
_ function : String ,
_ line : Int ,
_ behaviour : Behaviour
) {
self . storage = storage
self . file = file
self . function = function
self . line = line
self . behaviour = behaviour
}
}
}
}
}