---
title: "SynchronousStreamScope"
sidebar_label: "SynchronousStreamScope"
description: "Kotlin binding reference: SynchronousStreamScope."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[SynchronousStreamScope](index.md)

# SynchronousStreamScope

[common]\
class [SynchronousStreamScope](index.md)(stream: [Stream](../Stream/index.md))

While open, every op dispatched on the calling thread waits for completion before the dispatch returns, and stream runs at most one task at a time. Open it only on a quiescent stream (synchronize first); thread-local.

## Constructors

| | |
|---|---|
| [SynchronousStreamScope](SynchronousStreamScope.md) | [common]<br>constructor(stream: [Stream](../Stream/index.md)) |

## Functions

| Name | Summary |
|---|---|
| [close](close.md) | [common]<br>open fun [close](close.md)() |