Thanks for the PR Chris! I just had 2 qq’s:
- Is that running rvm/gem install on every build? I couldn’t see anything which would suggest it’s cached
- Will that cross-build work currently? I just tried adding “2.11.12” to
crossScalaVersions
and runningsbt +test
locally and it failed with some type inference errors
Just tagging @ChristopherDavenport in case this got lost in the chat. (1) is mainly out of curiosity and (2) I may have missed something super obvious - I haven’t much experience of worrying about 2.11 compatibility
.asJava
is more consistent with the more familiar JavaConverters
[error] /home/ross/src/cats-stm/core/src/main/scala/io/github/timwspence/cats/stm/STM.scala:180:44: type mismatch;
[error] found : <error> => <error>
[error] required: ?{def asJava: ?}
[error] Note that implicit conversions are not applicable because they are ambiguous:
[error] both method enrichAsJavaConsumer in trait Priority1FunctionConverters of type [T](sf: T => Unit)scala.compat.java8.functionConverterImpls.RichFunction1AsConsumer[T]
[error] and method enrichAsJavaIntFunction in trait Priority1FunctionConverters of type [R](sf: Int => R)scala.compat.java8.functionConverterImpls.RichFunction1AsIntFunction[R]
[error] are possible conversion functions from <error> => <error> to ?{def asJava: ?}
[error] entry.tvar.pending.updateAndGet((m => m + (txId -> pending)).asJava)
TimWSpence/cats-stm
to this file