Throttler

MIT License
Swift
iOS

1 image

Author

Description

Throttler is IO throttling library of one liner closure API. Using Throttler, you can throttle massive number of inputs coming in to the last in a single drop of one line API.

Check how Throttler works in Youtube: https://www.youtube.com/watch?v=iER3GQ_X7X0

A common problem that Throttler can solve is a user taps a button that requests asynchronous network call a massive number of times within few seconds.

It is a common situation I can meet in my daily work. Think about how many lines you need to write without Throttler to solve these repeatedly tedious and error-prone task!

Throttler is purely written in and depends on Dispatch Queue (DispatchWorkItem).

So unlike Combine, you can use and port it to any platform and versions without backward compatibility issue as long as GCD works.

Tags