mc_events

Event Based Programming for Nim.


Keywords
events, emitter
License
MIT
Install
nimble install mc_events

Documentation

Events

Event Based Programming for Nim.

Example:

import ec_events

var ee: EventEmitter = newEventEmitter()

ee.on(
    "print",
    proc(toPrint: string) =
        echo toPrint
)

ee.get(proc(toPrint: string), "print")("test")