エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
Testing asynchronous code in Elixir
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Testing asynchronous code in Elixir
I want to test a function which is using Task.async In order to make my test pass, I need to make... I want to test a function which is using Task.async In order to make my test pass, I need to make it sleep for 100ms before assertions, otherwise the test process is killed before the async task is executed. Is there a better way? EDITED, adding code samples : The code I would like to test (roughly) : def search(params) do RateLimiter.rate_limit(fn -> parsed_params = ExTwitter.Parser.parse_request

