@@ -216,8 +216,8 @@ public func requirea<T>(fileID: String = #fileID, file: FileString = #filePath,
216216/// `unwrap` will return the result of the expression if it is non-nil, and throw an error if the value is nil.
217217/// if a `customError` is given, then that will be thrown. Otherwise, a ``RequireError`` will be thrown.
218218@discardableResult
219- public func unwrap< T> ( fileID: String = #fileID, file: FileString = #filePath, line: UInt = #line, column: UInt = #column, customError: Error ? = nil , _ expression: @autoclosure @escaping ( ) throws -> T ? ) throws -> T {
220- try requires ( fileID: fileID, file: file, line: line, column: column, customError: customError, expression ( ) ) . toNot ( beNil ( ) )
219+ public func unwrap< T> ( fileID: String = #fileID, file: FileString = #filePath, line: UInt = #line, column: UInt = #column, customError: Error ? = nil , description : String ? = nil , _ expression: @autoclosure @escaping ( ) throws -> T ? ) throws -> T {
220+ try requires ( fileID: fileID, file: file, line: line, column: column, customError: customError, expression ( ) ) . toNot ( beNil ( ) , description : description )
221221}
222222
223223/// Makes sure that the expression evaluates to a non-nil value, otherwise throw an error.
@@ -226,8 +226,8 @@ public func unwrap<T>(fileID: String = #fileID, file: FileString = #filePath, li
226226/// `unwrap` will return the result of the expression if it is non-nil, and throw an error if the value is nil.
227227/// if a `customError` is given, then that will be thrown. Otherwise, a ``RequireError`` will be thrown.
228228@discardableResult
229- public func unwrap< T> ( fileID: String = #fileID, file: FileString = #filePath, line: UInt = #line, column: UInt = #column, customError: Error ? = nil , _ expression: @autoclosure ( ) -> ( ( ) throws -> T ? ) ) throws -> T {
230- try requires ( fileID: fileID, file: file, line: line, column: column, customError: customError, expression ( ) ) . toNot ( beNil ( ) )
229+ public func unwrap< T> ( fileID: String = #fileID, file: FileString = #filePath, line: UInt = #line, column: UInt = #column, customError: Error ? = nil , description : String ? = nil , _ expression: @autoclosure ( ) -> ( ( ) throws -> T ? ) ) throws -> T {
230+ try requires ( fileID: fileID, file: file, line: line, column: column, customError: customError, expression ( ) ) . toNot ( beNil ( ) , description : description )
231231}
232232
233233/// Makes sure that the expression evaluates to a non-nil value, otherwise throw an error.
@@ -236,8 +236,8 @@ public func unwrap<T>(fileID: String = #fileID, file: FileString = #filePath, li
236236/// `unwraps` will return the result of the expression if it is non-nil, and throw an error if the value is nil.
237237/// if a `customError` is given, then that will be thrown. Otherwise, a ``RequireError`` will be thrown.
238238@discardableResult
239- public func unwraps< T> ( fileID: String = #fileID, file: FileString = #filePath, line: UInt = #line, column: UInt = #column, customError: Error ? = nil , _ expression: @autoclosure @escaping ( ) throws -> T ? ) throws -> T {
240- try requires ( fileID: fileID, file: file, line: line, column: column, customError: customError, expression ( ) ) . toNot ( beNil ( ) )
239+ public func unwraps< T> ( fileID: String = #fileID, file: FileString = #filePath, line: UInt = #line, column: UInt = #column, customError: Error ? = nil , description : String ? = nil , _ expression: @autoclosure @escaping ( ) throws -> T ? ) throws -> T {
240+ try requires ( fileID: fileID, file: file, line: line, column: column, customError: customError, expression ( ) ) . toNot ( beNil ( ) , description : description )
241241}
242242
243243/// Makes sure that the expression evaluates to a non-nil value, otherwise throw an error.
@@ -246,8 +246,8 @@ public func unwraps<T>(fileID: String = #fileID, file: FileString = #filePath, l
246246/// `unwraps` will return the result of the expression if it is non-nil, and throw an error if the value is nil.
247247/// if a `customError` is given, then that will be thrown. Otherwise, a ``RequireError`` will be thrown.
248248@discardableResult
249- public func unwraps< T> ( fileID: String = #fileID, file: FileString = #filePath, line: UInt = #line, column: UInt = #column, customError: Error ? = nil , _ expression: @autoclosure ( ) -> ( ( ) throws -> T ? ) ) throws -> T {
250- try requires ( fileID: fileID, file: file, line: line, column: column, customError: customError, expression ( ) ) . toNot ( beNil ( ) )
249+ public func unwraps< T> ( fileID: String = #fileID, file: FileString = #filePath, line: UInt = #line, column: UInt = #column, customError: Error ? = nil , description : String ? = nil , _ expression: @autoclosure ( ) -> ( ( ) throws -> T ? ) ) throws -> T {
250+ try requires ( fileID: fileID, file: file, line: line, column: column, customError: customError, expression ( ) ) . toNot ( beNil ( ) , description : description )
251251}
252252
253253/// Makes sure that the async expression evaluates to a non-nil value, otherwise throw an error.
@@ -256,8 +256,8 @@ public func unwraps<T>(fileID: String = #fileID, file: FileString = #filePath, l
256256/// `unwrap` will return the result of the expression if it is non-nil, and throw an error if the value is nil.
257257/// if a `customError` is given, then that will be thrown. Otherwise, a ``RequireError`` will be thrown.
258258@discardableResult
259- public func unwrap< T> ( fileID: String = #fileID, file: FileString = #filePath, line: UInt = #line, column: UInt = #column, customError: Error ? = nil , _ expression: @escaping ( ) async throws -> T ? ) async throws -> T {
260- try await requirea ( fileID: fileID, file: file, line: line, column: column, customError: customError, try await expression ( ) ) . toNot ( beNil ( ) )
259+ public func unwrap< T> ( fileID: String = #fileID, file: FileString = #filePath, line: UInt = #line, column: UInt = #column, customError: Error ? = nil , description : String ? = nil , _ expression: @escaping ( ) async throws -> T ? ) async throws -> T {
260+ try await requirea ( fileID: fileID, file: file, line: line, column: column, customError: customError, try await expression ( ) ) . toNot ( beNil ( ) , description : description )
261261}
262262
263263/// Makes sure that the async expression evaluates to a non-nil value, otherwise throw an error.
@@ -266,8 +266,8 @@ public func unwrap<T>(fileID: String = #fileID, file: FileString = #filePath, li
266266/// `unwrap` will return the result of the expression if it is non-nil, and throw an error if the value is nil.
267267/// if a `customError` is given, then that will be thrown. Otherwise, a ``RequireError`` will be thrown.
268268@discardableResult
269- public func unwrap< T> ( fileID: String = #fileID, file: FileString = #filePath, line: UInt = #line, column: UInt = #column, customError: Error ? = nil , _ expression: ( ) -> ( ( ) async throws -> T ? ) ) async throws -> T {
270- try await requirea ( fileID: fileID, file: file, line: line, column: column, customError: customError, expression ( ) ) . toNot ( beNil ( ) )
269+ public func unwrap< T> ( fileID: String = #fileID, file: FileString = #filePath, line: UInt = #line, column: UInt = #column, customError: Error ? = nil , description : String ? = nil , _ expression: ( ) -> ( ( ) async throws -> T ? ) ) async throws -> T {
270+ try await requirea ( fileID: fileID, file: file, line: line, column: column, customError: customError, expression ( ) ) . toNot ( beNil ( ) , description : description )
271271}
272272
273273/// Makes sure that the async expression evaluates to a non-nil value, otherwise throw an error.
@@ -276,8 +276,8 @@ public func unwrap<T>(fileID: String = #fileID, file: FileString = #filePath, li
276276/// `unwrapa` will return the result of the expression if it is non-nil, and throw an error if the value is nil.
277277/// if a `customError` is given, then that will be thrown. Otherwise, a ``RequireError`` will be thrown.
278278@discardableResult
279- public func unwrapa< T> ( fileID: String = #fileID, file: FileString = #filePath, line: UInt = #line, column: UInt = #column, customError: Error ? = nil , _ expression: @autoclosure @escaping ( ) async throws -> T ? ) async throws -> T {
280- try await requirea ( fileID: fileID, file: file, line: line, column: column, customError: customError, try await expression ( ) ) . toNot ( beNil ( ) )
279+ public func unwrapa< T> ( fileID: String = #fileID, file: FileString = #filePath, line: UInt = #line, column: UInt = #column, customError: Error ? = nil , description : String ? = nil , _ expression: @autoclosure @escaping ( ) async throws -> T ? ) async throws -> T {
280+ try await requirea ( fileID: fileID, file: file, line: line, column: column, customError: customError, try await expression ( ) ) . toNot ( beNil ( ) , description : description )
281281}
282282
283283/// Makes sure that the async expression evaluates to a non-nil value, otherwise throw an error.
@@ -286,6 +286,6 @@ public func unwrapa<T>(fileID: String = #fileID, file: FileString = #filePath, l
286286/// `unwrapa` will return the result of the expression if it is non-nil, and throw an error if the value is nil.
287287/// if a `customError` is given, then that will be thrown. Otherwise, a ``RequireError`` will be thrown.
288288@discardableResult
289- public func unwrapa< T> ( fileID: String = #fileID, file: FileString = #filePath, line: UInt = #line, column: UInt = #column, customError: Error ? = nil , _ expression: @autoclosure ( ) -> ( ( ) async throws -> T ? ) ) async throws -> T {
290- try await requirea ( fileID: fileID, file: file, line: line, column: column, customError: customError, expression ( ) ) . toNot ( beNil ( ) )
289+ public func unwrapa< T> ( fileID: String = #fileID, file: FileString = #filePath, line: UInt = #line, column: UInt = #column, customError: Error ? = nil , description : String ? = nil , _ expression: @autoclosure ( ) -> ( ( ) async throws -> T ? ) ) async throws -> T {
290+ try await requirea ( fileID: fileID, file: file, line: line, column: column, customError: customError, expression ( ) ) . toNot ( beNil ( ) , description : description )
291291}
0 commit comments