Skip to content

Releases: baekteun/EventLimiter

2.0.0

23 Jun 01:40
Compare
Choose a tag to compare

Changed

  • Debouncer, Throttler를 실행할 때 async throws closure가 아닌 async closrue를 보내도록 변경합니다

Full Changelog: 1.0.5...2.0.0

1.0.5

23 Jun 00:26
Compare
Choose a tag to compare

Changed

  • sleep이 실패한다면 action을 실행하지 않고 바로 throw가 진행됩니다

Full Changelog: 1.0.4...1.0.5

1.0.4

22 Jun 10:13
Compare
Choose a tag to compare

Fix

  • action이 throw를 한다면 action을 다시 nil로 바꾸지 않고, task를 cancel도 안하는 현상을 해결합니다

Full Changelog: 1.0.3...1.0.4

1.0.3

21 Jun 15:11
Compare
Choose a tag to compare

Refactoring

  • Debouncer에서 execute를 호출할 때 dueTime을 self가 아닌 capture list에 올려 가져오도록 변경

Full Changelog: 1.0.2...1.0.3

1.0.2

21 Jun 08:35
Compare
Choose a tag to compare

Refactoring

deinit이 호출될 때 cancel() 메서드와 동일한 로직을 했는데, 그냥 cancel() 메서드를 호출하도록 리팩토링하였습니다.

Full Changelog: 1.0.1...1.0.2

1.0.1

20 Jun 16:12
Compare
Choose a tag to compare

Changed

Debouncer혹은 Throttler를 call할 때 action을 async closure를 받는것에서 async throws closure를 받도록 변경하였습니다.

Full Changelog: 1.0.0...1.0.1

1.0.0 EventLimiter

19 Jun 03:46
Compare
Choose a tag to compare

EventLimiter

Simple classes for efficiently handling events.

QuickStart

let debouncer = Debouncer(for: 0.3)
debouncer {
    self.search(keyword: keyword)
}
debouncer.cancel()

let throttler = Throttler(for: 1, latest: false)
throttler {
    self.reachedBottom()
}
throttler.cancel()

Full Changelog: https://github.com/baekteun/EventLimiter/commits/1.0.0