Skip to content

MambaCONT/timer_manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

timer_manager

ss

timer_manager

一个多个timer的管理类


Author BlackSnake

支持多个timer的使用,储存,取消

使用举例:

///如果不存在此key的timer,就反回成功
static String timerKey = 'timerKey';
bool createdSuccess = TimerManager.instance.startTimer(timerKey, duration,
        asyncBloc: _handlerNewCheckTimerEvent);
        
///取消定时器
TimerManager.instance.cancelTimer(timerKey);
    

About

a timer manager implemention with dart

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages