Skip to content

Commit 49da078

Browse files
committed
Mark new function inlinable since it's trivial
1 parent 5db55aa commit 49da078

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

stdlib/public/Concurrency/CheckedContinuation.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ extension CheckedContinuation where T == Void {
162162
/// After `resume` enqueues the task, control is immediately returned to
163163
/// the caller. The task will continue executing when its executor is
164164
/// able to reschedule it.
165+
@inlinable
165166
public func resume() {
166167
self.resume(returning: ())
167168
}
@@ -271,6 +272,7 @@ extension CheckedThrowingContinuation where T == Void {
271272
/// After `resume` enqueues the task, control is immediately returned to
272273
/// the caller. The task will continue executing when its executor is
273274
/// able to reschedule it.
275+
@inlinable
274276
public func resume() {
275277
self.resume(returning: ())
276278
}

stdlib/public/Concurrency/PartialAsyncTask.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public struct UnsafeContinuation<T> {
3535
}
3636

3737
extension UnsafeContinuation where T == Void {
38+
@inlinable
3839
public func resume() {
3940
self.resume(returning: ())
4041
}
@@ -65,6 +66,7 @@ public struct UnsafeThrowingContinuation<T> {
6566
}
6667

6768
extension UnsafeThrowingContinuation where T == Void {
69+
@inlinable
6870
public func resume() {
6971
self.resume(returning: ())
7072
}

0 commit comments

Comments
 (0)