Skip to content

Instantly share code, notes, and snippets.

View sguotao's full-sized avatar
🏀
I may be slow to respond.

scott sguotao

🏀
I may be slow to respond.
  • Beijing
View GitHub Profile
@objcode
objcode / ConcurrencyHelpers.kt
Last active November 29, 2024 10:01
Helpers to control concurrency for one shot requests using Kotlin coroutines.
/* Copyright 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,