Module

Web.Worker.Types

Package
purescript-web-workers
Repository
purescript-web/purescript-web-workers

#MessageEvent Source

#MessagePort Source

#Transferable Source

#SendWrapper Source

newtype SendWrapper a

Instances

#wrap Source

wrap :: forall a b. Newtype a b => IsSendable b => a -> SendWrapper a

#unwrap Source

unwrap :: forall a. SendWrapper a -> a

#unsafeWrap Source

unsafeWrap :: forall a. a -> SendWrapper a

Use with care. If you send something that isn't actually Sendable, it will raise an exception.