1.0.3 • Published 2 years ago

event-polling v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Eventpoller

A realy small library that can do polling on events like onClick

Usage

import {EventPoller, IEventPolling} from "event-polling"


function actualEventHandler(e: Event){...}

const pollerConfig: IEventPolling = {
    id: 0,
    callback: actualEventHandler
    timeout: 300
}

function eventHandler(e: Event){
    EventPoller.poll({
        ...pollerConfig,
        args: [e]
    })
}
1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago