Copyright | (c) Sebastian Witte |
---|---|
License | Apache-2.0 |
Maintainer | woozletoff@gmail.com |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
- acall :: NvimObject result => Text -> [Object] -> Neovim r st (STM (Either Object result))
- acall' :: NvimObject result => Text -> [Object] -> Neovim r st (STM result)
- scall :: NvimObject result => Text -> [Object] -> Neovim r st (Either Object result)
- scall' :: NvimObject result => Text -> [Object] -> Neovim r st result
- atomically' :: MonadIO io => STM result -> io result
- wait :: Neovim r st (STM result) -> Neovim r st result
- wait' :: Neovim r st (STM result) -> Neovim r st ()
- waitErr :: Show e => String -> Neovim r st (STM (Either e result)) -> Neovim r st result
- waitErr' :: Show e => String -> Neovim r st (STM (Either e result)) -> Neovim r st ()
- respond :: NvimObject result => Request -> Either String result -> Neovim r st ()
Documentation
acall :: NvimObject result => Text -> [Object] -> Neovim r st (STM (Either Object result)) Source
Helper function that concurrently puts a Message
in the event queue
and returns an STM
action that returns the result.
:: NvimObject result | |
=> Text | Function name |
-> [Object] | Parameters in an |
-> Neovim r st (Either Object result) | result value of the call or the thrown exception |
Call a neovim function synchronously. This function blocks until the result is available.
scall' :: NvimObject result => Text -> [Object] -> Neovim r st result Source
atomically' :: MonadIO io => STM result -> io result Source
Lifted variant of atomically
.
wait :: Neovim r st (STM result) -> Neovim r st result Source
Wait for the result of the STM action.
This action possibly blocks as it is an alias for
ioSTM -> ioSTM >>= liftIO . atomically
.