A good starting point is this example: 
<https://github.com/status-im/nim-presto/blob/master/examples/server.nim>

On top of that, you have this test that shows how to start metrics: 
<https://github.com/status-im/nim-metrics/blob/master/tests/chronos_server_tests.nim#L22>

Each of those can be put in its own async function, then you simply run both at 
the same time:
    
    
    proc startMetrics() {.async.} = ...
    proc startPresto() {.async.} = ...
    
    waitFor(allFutures(startMetrics(), startPresto()))
    
    
    Run

Reply via email to