{"id":15047941,"url":"https://github.com/juangburgos/qfunctionutils","last_synced_at":"2025-04-10T01:10:55.949Z","repository":{"id":70896266,"uuid":"205810731","full_name":"juangburgos/QFunctionUtils","owner":"juangburgos","description":"Qt helper functions for callback execution, throttle, debounce, etc.","archived":false,"fork":false,"pushed_at":"2019-12-11T21:42:25.000Z","size":5,"stargazers_count":14,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T01:10:44.425Z","etag":null,"topics":["cplusplus","cplusplus-11","cpp","cpp11","qt","qt5"],"latest_commit_sha":null,"homepage":null,"language":"C++","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/juangburgos.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2019-09-02T08:25:20.000Z","updated_at":"2025-01-22T11:17:29.000Z","dependencies_parsed_at":"2023-03-11T04:01:02.046Z","dependency_job_id":null,"html_url":"https://github.com/juangburgos/QFunctionUtils","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juangburgos%2FQFunctionUtils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juangburgos%2FQFunctionUtils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juangburgos%2FQFunctionUtils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juangburgos%2FQFunctionUtils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juangburgos","download_url":"https://codeload.github.com/juangburgos/QFunctionUtils/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137886,"owners_count":21053775,"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":["cplusplus","cplusplus-11","cpp","cpp11","qt","qt5"],"created_at":"2024-09-24T21:06:10.897Z","updated_at":"2025-04-10T01:10:55.863Z","avatar_url":"https://github.com/juangburgos.png","language":"C++","readme":"# QFunctionUtils\n\nProvides the following helper functions:\n\n* `QFunctionUtils::Debounce` : \n\nReceives a callback as first argument and a delay time in miliseconds as a second argument. \n\nReturns an `std::function` with the same signature as the given callback. The returned function\ncan be called any number of times wihtin the given delay time, but will only execute the \ngiven callback once the delay time has passed, and the function has not been called in this\nperiod.\n\nThis is useful in situations when it is desired to execute a command every so often. For example\nwhen a user clicks a button many times within a short period of time, but the logic behind takes\nsome time to execute, so it is desired to ignore the multiple clicks and execute the logic \nonly once. But if the delay time period passes, then the user can issue the command once again.\n\n* `QFunctionUtils::Throttle` : \n\nSame as `Debounce`, but it also executes the command once at the beginning, then waits for the\ndelay time period (ignoring any other of the calls) and then execute it once again at the end \nof the delay time period.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuangburgos%2Fqfunctionutils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuangburgos%2Fqfunctionutils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuangburgos%2Fqfunctionutils/lists"}