Skip to content

Commit 17bff81

Browse files
committed
Split JS and Native example apps
1 parent e97762c commit 17bff81

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

example/js-native/src/main/scala/cats/effect/example/Example.scala renamed to example/js/src/main/scala/cats/effect/example/Example.scala

File renamed without changes.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
* Copyright 2020-2025 Typelevel
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package cats.effect
18+
package example
19+
20+
object Example extends IOApp {
21+
def run(args: List[String]): IO[ExitCode] =
22+
(IO.println(args(0)).replicateA_(5) >>
23+
IO.println(args(1)).replicateA_(5)).replicateA_(2).as(ExitCode(2))
24+
}

0 commit comments

Comments
 (0)