Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Maintianer : ongy Stability : experimental
- data Operation
- data UOperation
- ptrToOperation :: Ptr UOperation -> IO Operation
- operationCancel :: Operation -> IO ()
- operationGetState :: Operation -> IO OperationState
- operationSetCallback :: Operation -> IO () -> IO ()
Documentation
High-level operation type, this should be the return type for exported |functions
data UOperation Source #
Unsafe Operation. Should be return value of foreign import calls
ptrToOperation :: Ptr UOperation -> IO Operation Source #
Convert a Unsafe Operation to a safe one. This should be called by wrappers |to FFI imports. |Also call this when not returning the value, since it registers the unref |function for the operation.
operationCancel :: Operation -> IO () Source #
Cancel an operation. The server may still do it, but the client will not be |notified
operationGetState :: Operation -> IO OperationState Source #
Get the State of the operation