object Fetch
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Fetch
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply[F[_], I, A](id: I, ds: DataSource[F, I, A])(implicit arg0: Concurrent[F]): Fetch[F, A]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
batchAll[F[_], A](fetches: Fetch[F, A]*)(implicit arg0: Monad[F]): Fetch[F, List[A]]
Given a number of fetches, returns all of the results in a
List
.Given a number of fetches, returns all of the results in a
List
. In the event that multiple fetches are made to the same data source, this will attempt to batch them together.As of 3.1.x, this is functionally equivalent to using
.sequence
syntax from Cats on any data structure implementingTraverse
. -
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def error[F[_], A](e: Throwable)(implicit arg0: Applicative[F]): Fetch[F, A]
- def exception[F[_], A](e: (Log) ⇒ FetchException)(implicit arg0: Applicative[F]): Fetch[F, A]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def liftF[F[_], A](f: F[A])(implicit arg0: ApplicativeThrow[F]): Fetch[F, A]
- def liftIO[F[_], A](io: IO[A])(implicit arg0: ApplicativeThrow[F], arg1: LiftIO[F]): Fetch[F, A]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def optional[F[_], I, A](id: I, ds: DataSource[F, I, A])(implicit arg0: Concurrent[F]): Fetch[F, Option[A]]
-
def
pure[F[_], A](a: A)(implicit arg0: Applicative[F]): Fetch[F, A]
Lift a plain value to the Fetch monad.
-
def
run[F[_]]: FetchRunner[F]
Run a
Fetch
, the result in theF
monad. -
def
runAll[F[_]]: FetchRunnerAll[F]
Run a
Fetch
getting the log, cache and result in theF
monad. -
def
runCache[F[_]]: FetchRunnerCache[F]
Run a
Fetch
, the cache and the result in theF
monad. -
def
runLog[F[_]]: FetchRunnerLog[F]
Run a
Fetch
, the log and the result in theF
monad. -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated