Skip to:
Doing `Cassandra::Future.all([]).join` will wait forever.
I think the expected thing to happen is to do nothing: there are no futures, so there's nothing to wait.
This can happen for example if you have some things that you want to execute in parallel:
```things = [...]futures = things.map { |thing| create_future(thing) }Cassandra::Future.all(futures).join```
Right now because of this behavior, one has to do:
```Cassandra::Future.all(futures).join unless futures.empty?```
which is more code, but also very bug prone.
Doing `Cassandra::Future.all([]).join` will wait forever.
I think the expected thing to happen is to do nothing: there are no futures, so there's nothing to wait.
This can happen for example if you have some things that you want to execute in parallel:
```
things = [...]
futures = things.map { |thing| create_future(thing) }
Cassandra::Future.all(futures).join
```
Right now because of this behavior, one has to do:
```
Cassandra::Future.all(futures).join unless futures.empty?
```
which is more code, but also very bug prone.