Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/shared/src/main/scala/zio/ZIO.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4323,7 +4323,7 @@ object ZIO extends ZIOCompanionPlatformSpecific with ZIOCompanionVersionSpecific
* effects. The effect must not throw any exceptions. When no environment is
* required (i.e., when R == Any) it is conceptually equivalent to
* `flatten(succeed(zio))`. If you wonder if the effect throws exceptions, do
* not use this method, use [[ZIO.suspend]] or [[ZIO.suspend]].
* not use this method, use [[ZIO.suspend]].
*/
def suspendSucceed[R, E, A](zio: => ZIO[R, E, A])(implicit trace: Trace): ZIO[R, E, A] =
ZIO.succeed(zio).flatMap(identityFn)
Expand Down