<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hitode909</author_name>
  <author_url>https://blog.hatena.ne.jp/hitode909/</author_url>
  <blog_title>hitode909の日記</blog_title>
  <blog_url>https://blog.sushi.money/</blog_url>
  <categories>
  </categories>
  <description>throttle(500)が最大で0.5秒ごとにしか実行されないDeferredオブジェクトを返す，みたいなのを作ってみた． timerを持っておいてclearTimeoutするかわりに，Deferredを持っておいて，rejectすることができる． 処理内容を実行時に決められるので，普通のthrottleより汎用性が高いかもしれない． 呼び出された回数だけタイマーが実効されるので，普通に書くより効率は悪いと思う． こういう風に使える． # Deferredを返す th = throttle(500) # 0.5秒経つと呼ばれる th('hello').then (msg) -&gt; consol…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.sushi.money%2Fentry%2F2012%2F02%2F11%2F124631&quot; title=&quot;jQuery Deferredでthrottle，debounce - hitode909の日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-02-11 12:46:31</published>
  <title>jQuery Deferredでthrottle，debounce</title>
  <type>rich</type>
  <url>https://blog.sushi.money/entry/2012/02/11/124631</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
