CurryInfo: base-3.4.0 / System.IO.Unsafe.spawnConstraint

definition: Info
 
spawnConstraint :: Bool -> a -> a
#ifdef __KICS2__
spawnConstraint c x | c = x -- non-concurrent implementation
demand: Info
 arguments 1 2
deterministic: Info
 deterministic operation
documentation: Info
 
Spawns a constraint and returns the second argument.
This function can be considered as defined by
`spawnConstraint c x | c = x`.
However, the evaluation of the constraint and the right-hand side
are performed concurrently, i.e., a suspension of the constraint
does not imply a blocking of the right-hand side and the
right-hand side might be evaluated before the constraint is successfully
solved.
Thus, a computation might return a result even if some of the
spawned constraints are suspended (use the PAKCS option
`+suspend` to show such suspended goals).
failfree: Info
 ({True}, _)
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {({True},_) |-> _}
name: Info
 spawnConstraint
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 Prelude.Bool -> a -> a
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 yes
totally-defined: Info
 possibly non-reducible on same data term