Last active
June 28, 2024 23:14
-
-
Save dacr/09496362f99005d60bf12da25175cdfc to your computer and use it in GitHub Desktop.
ZIO simplified unsafeRun brought by unsafeRun / published by https://github.com/dacr/code-examples-manager #02f79443-ac5f-461c-a3f5-fcc7902103b5/5e59739e854d35a34793cf9ee07df9be147b3bcc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// summary : ZIO simplified unsafeRun brought by unsafeRun | |
// keywords : scala, zio, unsafeRun | |
// publish : gist | |
// authors : David Crosson | |
// license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2) | |
// id : 02f79443-ac5f-461c-a3f5-fcc7902103b5 | |
// created-on : 2022-06-26T11:58:21+02:00 | |
// managed-by : https://github.com/dacr/code-examples-manager | |
// run-with : scala-cli $file | |
// --------------------- | |
//> using scala "3.4.2" | |
//> using dep "fr.janalyse::zio-worksheet:2.1.3.0" | |
// --------------------- | |
import zio.*, zio.worksheet.* | |
// -------------------------------------------- | |
val app = Console.printLine("Hello world !") | |
app.unsafeRun |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment