Skip to content

Instantly share code, notes, and snippets.

View mtimmerm's full-sized avatar

Matt Timmermans mtimmerm

View GitHub Profile
@mtimmerm
mtimmerm / SerialContext.kt
Last active June 8, 2020 03:08
use withSerialContext to run coroutines serially on a multithreaded dispatcher
/*
Copyright 2019 Matthew D.G. Timmermans
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