Safe Haskell | None |
---|---|
Language | Haskell2010 |
Delete operation.
This operation comes in four flavours:
- synchronous, exception throwing (
delete
) - synchronous, returning
Either
ResponseError
()
(deleteEither
) - asynchronous,
IO
based (deleteAsync
) - asynchronous,
STM
based (deleteAsyncSTM
)
Of those, the first one (delete
) is probably the most useful for the typical usecase.
Documentation
delete :: Ldap -> Dn -> IO () Source
Perform the Delete operation synchronously. Raises ResponseError
on failures.
deleteEither :: Ldap -> Dn -> IO (Either ResponseError ()) Source
Perform the Delete operation synchronously. Returns Left e
where
e
is a ResponseError
on failures.
deleteAsync :: Ldap -> Dn -> IO (Async ()) Source
Perform the Delete operation asynchronously. Call wait
to wait
for its completion.
deleteAsyncSTM :: Ldap -> Dn -> STM (Async ()) Source
Perform the Delete operation asynchronously.
Don't wait for its completion (with waitSTM
) in the
same transaction you've performed it in.