Skip to content

Instantly share code, notes, and snippets.

View jclyne's full-sized avatar

Jeff Clyne jclyne

  • Block Inc.
  • St Louis, MO
  • 06:16 (UTC -06:00)
View GitHub Profile
import com.google.inject.AbstractModule
import com.google.inject.Guice
import com.google.inject.multibindings.OptionalBinder
import jakarta.inject.Inject
import java.util.Optional
import kotlin.jvm.optionals.getOrNull
class Greeter(val name: String) {
fun greet() = println("Hello $name")
@jclyne
jclyne / coroutines.md
Last active December 15, 2025 20:53
Server-Side Coroutines Guide

Server-Side Coroutines Guide

Google Doc

Goals

This document aims to describe how coroutine usage on the server is implemented within frameworks, outlining best practices and providing educational guidance for developers.

This is not an exhaustive explanation of coroutines and all their features. For comprehensive coroutine documentation, refer to the official Kotlin coroutines documentation. This guide focuses specifically on server-side usage within our frameworks (Misk, event-client, etc.), addressing the unique considerations and patterns that apply to server environments.