{"id":16401495,"url":"https://github.com/plugfox/throttling","last_synced_at":"2025-03-21T02:32:58.548Z","repository":{"id":54139418,"uuid":"191238056","full_name":"PlugFox/throttling","owner":"PlugFox","description":"Throttler and debouncer in dart","archived":false,"fork":false,"pushed_at":"2023-11-22T18:39:57.000Z","size":61,"stargazers_count":39,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T02:11:37.768Z","etag":null,"topics":["dart","debouncer"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/throttling","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PlugFox.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-10T20:07:43.000Z","updated_at":"2024-10-23T10:06:50.000Z","dependencies_parsed_at":"2024-06-21T16:33:02.087Z","dependency_job_id":"553ad1c5-1c30-4069-b8c5-a0c70fc54a64","html_url":"https://github.com/PlugFox/throttling","commit_stats":{"total_commits":42,"total_committers":5,"mean_commits":8.4,"dds":"0.30952380952380953","last_synced_commit":"fc707a243619e59996bc0ab05308e3a6c85c59a3"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PlugFox%2Fthrottling","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PlugFox%2Fthrottling/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PlugFox%2Fthrottling/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PlugFox%2Fthrottling/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PlugFox","download_url":"https://codeload.github.com/PlugFox/throttling/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244102832,"owners_count":20398386,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dart","debouncer"],"created_at":"2024-10-11T05:43:16.386Z","updated_at":"2025-03-21T02:32:58.138Z","avatar_url":"https://github.com/PlugFox.png","language":"Dart","readme":"# THROTTLING DART LIBRARY\n\n##### _contain \"throttling\" and \"debouncing\" classes_\n\n[![Actions Status](https://github.com/PlugFox/throttling/actions/workflows/checkout.yml/badge.svg)](https://github.com/PlugFox/throttling/actions/workflows/checkout.yml)\n[![Coverage](https://codecov.io/gh/PlugFox/throttling/branch/master/graph/badge.svg)](https://codecov.io/gh/PlugFox/throttling)\n[![Pub](https://img.shields.io/pub/v/throttling.svg)](https://pub.dev/packages/throttling)\n[![License: MIT](https://img.shields.io/badge/license-MIT-purple.svg)](https://opensource.org/licenses/MIT)\n[![Effective Dart](https://img.shields.io/badge/style-effective_dart-40c4ff.svg)](https://github.com/tenhobi/effective_dart)\n[![Star on Github](https://img.shields.io/github/stars/plugfox/throttling.svg?style=flat\u0026logo=github\u0026colorB=deeppink\u0026label=stars)](https://github.com/PlugFox/throttling)\n\n## Using\n\nSee a demonstration of use at [dartpad.dev](https://dartpad.dev/?id=8630021e5c7ab9d27b74e86372f74c31)\n\n### Throttling example\n\n```dart\nfinal thr = Throttling\u003cvoid\u003e(duration: const Duration(milliseconds: 200));\nthr.throttle(() {print(' * 1');}); // print ' * 1'\nawait Future\u003cvoid\u003e.delayed(const Duration(milliseconds: 100));\nthr.throttle(() {print(' * 2');});\nawait Future\u003cvoid\u003e.delayed(const Duration(milliseconds: 100));\nthr.throttle(() {print(' * 3');}); // print ' * 3'\nthr.close();\n```\n\n### Debouncing example\n\n```dart\nfinal deb = Debouncing\u003cvoid\u003e(duration: const Duration(milliseconds: 200));\ndeb.debounce(() {print(' * 1');});\nawait Future\u003cvoid\u003e.delayed(const Duration(milliseconds: 100));\ndeb.debounce(() {print(' * 2');});\nawait Future\u003cvoid\u003e.delayed(const Duration(milliseconds: 100));\ndeb.debounce(() {print(' * 3');});\nawait Future\u003cvoid\u003e.delayed(const Duration(milliseconds: 200));\n// print ' * 3'\ndeb.close();\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplugfox%2Fthrottling","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplugfox%2Fthrottling","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplugfox%2Fthrottling/lists"}