top-0.2.4: Top (typed oriented protocol) API

Safe HaskellNone
LanguageHaskell2010

Network.Top.Run

Description

Run processed connected to Top

Synopsis

Documentation

runAppForever Source #

Arguments

:: (Model (router a), Flat (router a), Show (router a), Flat a, Show a) 
=> Config

Top configuration

-> router a

Routing protocol

-> App a r

Application to connect

-> IO r

Value returned from the application

Permanently connect an application to a typed channel. |Restart application in case of network or application failure. |NOTE: does not provide a way to preserve application's state

runApp Source #

Arguments

:: (Model (router a), Flat (router a), Show (router a), Flat a, Show a) 
=> Config

Top configuration

-> router a

Routing protocol

-> App a r

Application to connect

-> IO r

Value returned from the application

Connect an application to a typed channel.

runAppWith Source #

Arguments

:: Config

Top configuration

-> TypedBLOB

Routing protocol

-> App ByteString r

Application to connect

-> IO r

Value returned from the application

Connect an application to a typed channel