CloseableIterator

slick.util.CloseableIterator
See theCloseableIterator companion trait

Attributes

Companion
trait
Source
CloseableIterator.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

final class Close[C <: Closeable](makeC: => C)

Attributes

Source
CloseableIterator.scala
Supertypes
class Object
trait Matchable
class Any
class Single[+T](item: T) extends CloseableIterator[T]

A CloseableIterator which contains exactly one item.

A CloseableIterator which contains exactly one item.

Attributes

Source
CloseableIterator.scala
Supertypes
trait Closeable
trait AutoCloseable
trait Iterator[T]
trait IterableOnceOps[T, Iterator, Iterator[T]]
trait IterableOnce[T]
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def close[C <: Closeable](makeC: => C): Close[C]

Using some Closeable resource and a function to create a CloseableIterator from it, return a wrapped CloseableIterator which closes the resource when itself gets closed. If the function terminates abnormally, the resource is closed immediately.

Using some Closeable resource and a function to create a CloseableIterator from it, return a wrapped CloseableIterator which closes the resource when itself gets closed. If the function terminates abnormally, the resource is closed immediately.

Attributes

Source
CloseableIterator.scala

Concrete fields

val empty: CloseableIterator[Nothing]

An empty CloseableIterator

An empty CloseableIterator

Attributes

Source
CloseableIterator.scala