asynchronize:用于创建异步方法的声明性语法

时间:2021-04-24 15:27:37
【文件属性】:
文件名称:asynchronize:用于创建异步方法的声明性语法
文件大小:10KB
文件格式:ZIP
更新时间:2021-04-24 15:27:37
ruby lightweight multithreading Ruby 异步化 用于创建异步方法的声明性语法。 是否发现自己为所有异步方法都编写了相同的样板? 保持同步干燥。 只需添加到您的Gemfile中并bundle或与gem install asynchronize全局gem install asynchronize 用法 用异步方法创建一个类 require 'asynchronize' class Test include Asynchronize # Can be called before or after method definitions. I prefer it at the top of classes. asynchronize :my_test , :my_other_test def my_test return 'testing' end def my_other_test #do s
【文件预览】:
asynchronize-master
----.travis.yml(508B)
----changelog.md(839B)
----readme.md(7KB)
----Rakefile(180B)
----asynchronize.gemspec(1KB)
----LICENSE(1KB)
----Gemfile(57B)
----spec()
--------minitest_helper.rb(64B)
--------spec.rb(4KB)
----.gitignore(1KB)
----lib()
--------asynchronize.rb(3KB)

网友评论