An iterator which will invoke the given 'closeMe' thunk when it is exhausted It also implements 'AutoClosable' should it need to be closed early
Typeclass to serialize a type from a byte array
A wrapper for lazy values which can be queried whether they are created.
A wrapper for lazy values which can be queried whether they are created.
This was created primarily for being able to close/clean up things which may or may not have been created.
e.g. instead of this:
lazy val someResource = ... // we may not have had a 'someResource' yet, so trying to close() our object // would instantiate and then 'close' the resource def close() = someResource.close()
we'd have this:
private val someResource_ = Lazy { ... } def someResource = someResource_.value def close() = someResource_.close() // or perhaps someResource_.foreach(_.destroy)
Contains some 'pimped' types (adding <string>.asPath), and RichPath
exposes 'toPath' on strings, for e.g.
exposes 'toPath' on strings, for e.g.
"/var/tmp/foo.txt".asPath.text = "hello world"
a pimped string
Typeclass to serialize a type to bytes
Typeclass to serialize a type to bytes
the value to convert
Provides a means to encode a long into a shorter string of characters (alphanumeric by default, so effectively base 62 instead of base 10 (10 + 26 + 26)