Effect

@implicitNotFound("Instance of Effect for ${F} is not found.") trait Effect[F[_]]

Korolev's internal presentation of effect (such as Future, cats.effect.IO, Monix or ZIO tasks). Contains enough functionality to make Korolev works.

Companion
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def delay[A](value: => A): F[A]
def fail[A](e: Throwable): F[A]
def flatMap[A, B](m: F[A])(f: A => F[B]): F[B]
def fork[A](m: => F[A])(implicit ec: ExecutionContext): F[A]

Keep in mind that when F has strict semantic, effect should created inside 'fork()' brackets.

Keep in mind that when F has strict semantic, effect should created inside 'fork()' brackets.

def fromTry[A](value: => Try[A]): F[A]
def map[A, B](m: F[A])(f: A => B): F[B]
def never[T]: F[T]
def promise[A](cb: Either[Throwable, A] => Unit => Unit): F[A]
def promiseF[A](cb: Either[Throwable, A] => Unit => F[Unit]): F[A]
def pure[A](value: A): F[A]
def recover[A, AA >: A](m: F[A])(f: PartialFunction[Throwable, AA]): F[AA]
def recoverF[A, AA >: A](m: F[A])(f: PartialFunction[Throwable, F[AA]]): F[AA]
def run[A](m: F[A]): Either[Throwable, A]
def runAsync[A](m: F[A])(callback: Either[Throwable, A] => Unit): Unit
def sequence[A](in: List[F[A]]): F[List[A]]
def start[A](create: => F[A])(implicit ec: ExecutionContext): F[Fiber[F, A]]

Keep in mind that when F has strict semantic, effect should created inside 'start()' brackets.

Keep in mind that when F has strict semantic, effect should created inside 'start()' brackets.

def toFuture[A](m: F[A]): Future[A]
def unit: F[Unit]

Concrete methods

def delayAsync[A](value: => F[A]): F[A]