diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..d79ff68 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,7 @@ +## Version 0.3 + +_NOTE_ This requires version Crystal > 0.35 + +1. Crystal team has moved Concurrent::Future to community-future shard, and removed functionality from standard library in Crystal version 0.35 +2. Discussion is here: https://github.com/crystal-lang/crystal/pull/9093 +3. This updates lucky-cluster to be compatible with the change diff --git a/shard.yml b/shard.yml index a6c080c..dc3fc55 100644 --- a/shard.yml +++ b/shard.yml @@ -1,5 +1,5 @@ name: lucky-cluster -version: 0.2.0 +version: 0.3.0 authors: - Jeremy Woertink @@ -7,3 +7,7 @@ authors: crystal: 0.29.0 license: MIT + +dependencies: + future: + github: crystal-community/future.cr diff --git a/src/lucky-cluster.cr b/src/lucky-cluster.cr index 8c3b9db..0ad4fe9 100644 --- a/src/lucky-cluster.cr +++ b/src/lucky-cluster.cr @@ -1,13 +1,15 @@ +require "future" + module Lucky class Cluster < ::AppServer - VERSION = "0.2.0" - private getter processes : Array(Concurrent::Future(Nil)) + VERSION = "0.3.0" + private getter processes : Array(Future::Compute(Nil)) private getter reuse_port : Bool property threads : Int32 = 1 def initialize - @processes = [] of Concurrent::Future(Nil) + @processes = [] of Future::Compute(Nil) @reuse_port = true super end