GamePresence

constructor(seam: Seam, presenceScope: CoroutineScope, expectVirtualTime: Boolean = false)

Parameters

seam

the Seam to replicate presence over.

scope

the CoroutineScope whose kotlinx.coroutines.Job parents the replicator's owned child job. In tests, pass backgroundScope from kotlinx.coroutines.test.TestScope so the Quilter's infinite collectors cancel cleanly at test end.

expectVirtualTime

suppress the Quilter TestDispatcher guard warning; set true in tests that run under kotlinx.coroutines.test.UnconfinedTestDispatcher.