Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
JSCVirtualMachine represents a group of JSCContexts. It allows concurrent JavaScript execution by creating a different instance of JSCVirtualMachine in each thread.
To create a group of JSCContexts pass the same JSCVirtualMachine instance to every JSCContext constructor.
Synopsis
- newtype VirtualMachine = VirtualMachine (ManagedPtr VirtualMachine)
- class (GObject o, IsDescendantOf VirtualMachine o) => IsVirtualMachine o
- toVirtualMachine :: (MonadIO m, IsVirtualMachine o) => o -> m VirtualMachine
- virtualMachineNew :: (HasCallStack, MonadIO m) => m VirtualMachine
Exported types
newtype VirtualMachine Source #
Memory-managed wrapper type.
VirtualMachine (ManagedPtr VirtualMachine) |
Instances
class (GObject o, IsDescendantOf VirtualMachine o) => IsVirtualMachine o Source #
Type class for types which can be safely cast to VirtualMachine
, for instance with toVirtualMachine
.
Instances
(GObject o, IsDescendantOf VirtualMachine o) => IsVirtualMachine o Source # | |
Defined in GI.JavaScriptCore.Objects.VirtualMachine |
toVirtualMachine :: (MonadIO m, IsVirtualMachine o) => o -> m VirtualMachine Source #
Cast to VirtualMachine
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getProperty, getQdata.
Setters
new
:: (HasCallStack, MonadIO m) | |
=> m VirtualMachine | Returns: the newly created |
Create a new VirtualMachine
.