Skip to content

Instantly share code, notes, and snippets.

View konrad-kaminski's full-sized avatar

Konrad Kamiński konrad-kaminski

  • Grupa Allegro Sp. z o.o.
  • Warsaw, Poland
View GitHub Profile
@konrad-kaminski
konrad-kaminski / CountDownLatch.kt
Created May 9, 2017 23:10
CountDownLatch naive implementation based on ConflatedBroadcastChannel
/*
* Copyright 2016-2017 JetBrains s.r.o.
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@konrad-kaminski
konrad-kaminski / CountDownLatch.kt
Last active July 14, 2022 23:50
CountDownLatch naive implementation
/*
* Copyright 2016-2017 JetBrains s.r.o.
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software