graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hasura.ShutdownLatch

Synopsis

Documentation

data ShutdownLatch Source #

A latch for the graceful shutdown of a server process.

waitForShutdown :: ShutdownLatch -> IO () Source #

Block the current thread, waiting on the latch.

shutdownGracefully :: ShutdownLatch -> IO () Source #

Initiate a graceful shutdown of the server associated with the provided latch.

shuttingDown :: ShutdownLatch -> IO Bool Source #

Returns True if the latch is set for shutdown and vice-versa