Skip to content

Commit e08dbfa

Browse files
committed
Make .await inline again, courtesy of scala/scala3#20241
1 parent 531d777 commit e08dbfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared/src/main/scala/async/Async.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ object Async:
191191
* @see
192192
* [[Source!.awaitResult awaitResult]] for non-unwrapping await.
193193
*/
194-
def await(using Async) = src.awaitResult.get
194+
inline def await(using Async): T = src.awaitResult.get
195195
extension [E, T](src: Source[Either[E, T]]^)
196196
/** Waits for an item to arrive from the source, then automatically unwraps it. Suspends until an item returns.
197197
* @see

0 commit comments

Comments
 (0)