Skip to content

Commit

Permalink
Make .await inline again, courtesy of scala/scala3#20241
Browse files Browse the repository at this point in the history
  • Loading branch information
natsukagami committed Apr 20, 2024
1 parent 7c361c6 commit 490fd99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/src/main/scala/async/Async.scala
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ object Async:
* @see
* [[Source!.awaitResult awaitResult]] for non-unwrapping await.
*/
def await(using Async) = src.awaitResult.get
inline def await(using Async): T = src.awaitResult.get
extension [E, T](src: Source[Either[E, T]]^)
/** Waits for an item to arrive from the source, then automatically unwraps it. Suspends until an item returns.
* @see
Expand Down

0 comments on commit 490fd99

Please sign in to comment.