---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---
# WritableStreamDefaultWriter.releaseLock()

The **`releaseLock()`** method of the
`WritableStreamDefaultWriter` interface releases the writer's lock on the
corresponding stream. After the lock is released, the writer is no longer active. If the
associated stream is errored when the lock is released, the writer will appear errored
in the same way from now on; otherwise, the writer will appear closed.

## Syntax

```js
releaseLock()
```

### Parameters

None.

### Return value

None `undefined`.

