diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..24f377e --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 Antonio Gabriel Muñoz Conejo + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/src/main/java/com/github/tonivade/vavr/effect/Fiber.java b/src/main/java/com/github/tonivade/vavr/effect/Fiber.java index d934c88..3afe2ec 100644 --- a/src/main/java/com/github/tonivade/vavr/effect/Fiber.java +++ b/src/main/java/com/github/tonivade/vavr/effect/Fiber.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, Antonio Gabriel Muñoz Conejo + * Copyright (c) 2024, Antonio Gabriel Muñoz Conejo * Distributed under the terms of the MIT License */ package com.github.tonivade.vavr.effect; @@ -7,12 +7,12 @@ public sealed interface Fiber { IO join(); - + IO cancel(); - + static Fiber of(IO join, IO cancel) { return new FiberImpl<>(join, cancel); } - + record FiberImpl(IO join, IO cancel) implements Fiber {} } \ No newline at end of file diff --git a/src/main/java/com/github/tonivade/vavr/effect/IO.java b/src/main/java/com/github/tonivade/vavr/effect/IO.java index 4f13d46..90073c4 100644 --- a/src/main/java/com/github/tonivade/vavr/effect/IO.java +++ b/src/main/java/com/github/tonivade/vavr/effect/IO.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, Antonio Gabriel Muñoz Conejo + * Copyright (c) 2024, Antonio Gabriel Muñoz Conejo * Distributed under the terms of the MIT License */ package com.github.tonivade.vavr.effect; diff --git a/src/main/java/com/github/tonivade/vavr/effect/Reference.java b/src/main/java/com/github/tonivade/vavr/effect/Reference.java index ce66193..c5d86ee 100644 --- a/src/main/java/com/github/tonivade/vavr/effect/Reference.java +++ b/src/main/java/com/github/tonivade/vavr/effect/Reference.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, Antonio Gabriel Muñoz Conejo + * Copyright (c) 2024, Antonio Gabriel Muñoz Conejo * Distributed under the terms of the MIT License */ package com.github.tonivade.vavr.effect; diff --git a/src/main/java/com/github/tonivade/vavr/effect/Resource.java b/src/main/java/com/github/tonivade/vavr/effect/Resource.java index 0c81b47..2c438ae 100644 --- a/src/main/java/com/github/tonivade/vavr/effect/Resource.java +++ b/src/main/java/com/github/tonivade/vavr/effect/Resource.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, Antonio Gabriel Muñoz Conejo + * Copyright (c) 2024, Antonio Gabriel Muñoz Conejo * Distributed under the terms of the MIT License */ package com.github.tonivade.vavr.effect; diff --git a/src/main/java/com/github/tonivade/vavr/effect/Schedule.java b/src/main/java/com/github/tonivade/vavr/effect/Schedule.java index 0011700..176f20e 100644 --- a/src/main/java/com/github/tonivade/vavr/effect/Schedule.java +++ b/src/main/java/com/github/tonivade/vavr/effect/Schedule.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, Antonio Gabriel Muñoz Conejo + * Copyright (c) 2024, Antonio Gabriel Muñoz Conejo * Distributed under the terms of the MIT License */ package com.github.tonivade.vavr.effect; diff --git a/src/main/java/com/github/tonivade/vavr/effect/Unit.java b/src/main/java/com/github/tonivade/vavr/effect/Unit.java index 11b3583..dce2be9 100644 --- a/src/main/java/com/github/tonivade/vavr/effect/Unit.java +++ b/src/main/java/com/github/tonivade/vavr/effect/Unit.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, Antonio Gabriel Muñoz Conejo + * Copyright (c) 2024, Antonio Gabriel Muñoz Conejo * Distributed under the terms of the MIT License */ package com.github.tonivade.vavr.effect; diff --git a/src/test/java/com/github/tonivade/vavr/effect/IOTest.java b/src/test/java/com/github/tonivade/vavr/effect/IOTest.java index 70452b1..6fc39d2 100644 --- a/src/test/java/com/github/tonivade/vavr/effect/IOTest.java +++ b/src/test/java/com/github/tonivade/vavr/effect/IOTest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, Antonio Gabriel Muñoz Conejo + * Copyright (c) 2024, Antonio Gabriel Muñoz Conejo * Distributed under the terms of the MIT License */ package com.github.tonivade.vavr.effect; diff --git a/src/test/java/com/github/tonivade/vavr/effect/RefeferenceTest.java b/src/test/java/com/github/tonivade/vavr/effect/RefeferenceTest.java index 9f223f0..16d8744 100644 --- a/src/test/java/com/github/tonivade/vavr/effect/RefeferenceTest.java +++ b/src/test/java/com/github/tonivade/vavr/effect/RefeferenceTest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, Antonio Gabriel Muñoz Conejo + * Copyright (c) 2024, Antonio Gabriel Muñoz Conejo * Distributed under the terms of the MIT License */ package com.github.tonivade.vavr.effect; diff --git a/src/test/java/com/github/tonivade/vavr/effect/ResourceTest.java b/src/test/java/com/github/tonivade/vavr/effect/ResourceTest.java index baff066..59884a3 100644 --- a/src/test/java/com/github/tonivade/vavr/effect/ResourceTest.java +++ b/src/test/java/com/github/tonivade/vavr/effect/ResourceTest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, Antonio Gabriel Muñoz Conejo + * Copyright (c) 2024, Antonio Gabriel Muñoz Conejo * Distributed under the terms of the MIT License */ package com.github.tonivade.vavr.effect; diff --git a/src/test/java/com/github/tonivade/vavr/effect/ScheduleTest.java b/src/test/java/com/github/tonivade/vavr/effect/ScheduleTest.java index e604c76..7cdd9fa 100644 --- a/src/test/java/com/github/tonivade/vavr/effect/ScheduleTest.java +++ b/src/test/java/com/github/tonivade/vavr/effect/ScheduleTest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, Antonio Gabriel Muñoz Conejo + * Copyright (c) 2024, Antonio Gabriel Muñoz Conejo * Distributed under the terms of the MIT License */ package com.github.tonivade.vavr.effect;