Skip to content

Instantly share code, notes, and snippets.

View angu-software's full-sized avatar
👨‍💻
Senior iOS Engineer | TDD | TCR | CD

ANGU angu-software

👨‍💻
Senior iOS Engineer | TDD | TCR | CD
View GitHub Profile
@angu-software
angu-software / PublisherTestSupport.swift
Last active September 29, 2025 09:58
Test support functions to await for changes in a publisher which may be triggered as side effect of a method call.
//
// PublisherTestSupport.swift
//
// Created by Andreas Günther on 29.09.25.
//
import Combine
import Foundation
enum AwaitPublisherError: Error, CustomStringConvertible {
import Combine
protocol Suspendable {
var isSuspended: Bool { get }
func suspend()
func `continue`()
}