public func neverHappen(file: StaticString = #file, line: UInt = #line) -> Never { fatalError("never happen", file: file, line: line) } public func neverHappen<T0>(_ arg0: T0, file: StaticString = #file, line: UInt = #line) -> Never { fatalError("never happen: arg0=\(arg0)") }
例えばこうやって使う Observable.just(()).asDriver(onErrorRecover: { neverHappen($0) })
(edited)asDriver(onErrorRecover: neverHappen)
(edited)