程序员文章站logo
  • 首页
  • 最新文章
  • Java
  • PYTHON
  • PHP
  • Android
  • IOS
  • Swoole
  • 标签
当前位置:首页>>timer:send_after

timer:send_after

  • 程序员文章站
  • Erlang |Blog
  • 2022-07-15 22:54:14

gen_server 代码片段
 init([Host, _Opts]) -> 
       timer:send_after(5000, self(), {writing_db}),      
      {ok, #state{}}.     
 handle_info({writing_db}, State) ->
       timer:send_after(5000, self(), {writing_db}),  
       ...............

{noreply, State};

erlang:send_after和erlang:start_timer的使用解释 见

 http://blog.yufeng.info/archives/tag/start_timer

 

上一篇:不要忽略任何一个错误提示,更要找到原因linked websocket controlling loop crashed with reason: kille
下一篇:OSGi定义

猜你喜欢

  • timer:send_after
  • Spring 使用Timer quartz区别
  • 使用ScheduledThreadPoolExecutor代替Timer&TimerTask
  • 使用ScheduledThreadPoolExecutor代替Timer&TimerTask
  • Timer和ScheduledExecutorService区别
  • zedboard第十八课(standaloneOS,Interrupt专题,TIMER中断)
  • Timer定时器
  • 定时器timer
  • Timer定时器
  • Timer定时器

推荐文章

  • 本博客文章都为转载,没有任何版权!
  • 1069 The Black Hole of Numbers (20分)
  • Linux obuntu里 新开一个命令终端的快捷键是什么?
  • 浅谈jQuery绑定事件on和bind的区别
  • 561. Array Partition I
  • jQuery判断滚动到底部或顶部
  • jquery 调用live()方法无效?
  • ubuntu 中 某些文件要root权限才能复制 粘贴,,怎么对它操作?
  • java如何将String转换为enum
网站首页标签版权申明用户隐私联系方式

Copyright © 2021 -2022程序员文章站,粤ICP备20058927号

友情链接:
大家都在搜
php主从配置扁平化h5sql注入java