VThreadSupport

gears.async.VThreadSupport
opaque object VThreadSupport extends AsyncSupport

Attributes

Graph
Supertypes
trait AsyncSupport
class Object
trait Matchable
class Any
Self type

Members list

Type members

Types

override opaque type Label[R]

A marker for the "limit" of "delimited continuation".

A marker for the "limit" of "delimited continuation".

Attributes

override opaque type Suspension[-T, +R]

The provided suspension type.

The provided suspension type.

Attributes

Value members

Concrete methods

override def boundary[R](body: (Label[R]) ?=> R): R

Set the suspension marker as the body's caller, and execute body.

Set the suspension marker as the body's caller, and execute body.

Attributes

Definition Classes
override def scheduleBoundary(body: (Label[Unit]) ?=> Unit)(using Scheduler): Unit

Schedule a computation with the suspension boundary already created.

Schedule a computation with the suspension boundary already created.

Attributes

Definition Classes
override def suspend[T, R](body: (Suspension[T, R]) => R)(using l: Label[R]): T

Should return immediately if resume is called from within body

Should return immediately if resume is called from within body

Attributes

Definition Classes