This commit is contained in:
RubenVerborgh
2021-06-29 16:54:45 +00:00
parent e1e35a84d0
commit 8591fda008
525 changed files with 12756 additions and 8659 deletions

View File

@@ -3,8 +3,8 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>ExpiringReadWriteLocker | Community Solid Server - v0.9.0</title>
<meta name="description" content="Documentation for Community Solid Server - v0.9.0">
<title>ExpiringReadWriteLocker | Community Solid Server - v1.0.0-beta.0</title>
<meta name="description" content="Documentation for Community Solid Server - v1.0.0-beta.0">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../assets/css/main.css">
<script async src="../assets/js/search.js" id="search-script"></script>
@@ -23,7 +23,7 @@
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../index.html" class="title">Community Solid Server - v0.9.0</a>
<a href="../index.html" class="title">Community Solid Server - v1.0.0-beta.0</a>
</div>
<div class="table-cell" id="tsd-widgets">
<div id="tsd-filter">
@@ -52,7 +52,7 @@
<div class="container">
<ul class="tsd-breadcrumb">
<li>
<a href="../modules.html">Community Solid Server - v0.9.0</a>
<a href="../modules.html">Community Solid Server - v1.0.0-beta.0</a>
</li>
<li>
<a href="../modules/util_locking_expiringreadwritelocker.html">util/locking/ExpiringReadWriteLocker</a>
@@ -117,25 +117,9 @@
<aside class="tsd-sources">
<p>Overrides <a href="util_locking_readwritelocker.readwritelocker.html">ReadWriteLocker</a>.<a href="util_locking_readwritelocker.readwritelocker.html#withreadlock">withReadLock</a></p>
<ul>
<li>Defined in <a href="https://github.com/solid/community-server/blob/0a68fbf/src/util/locking/ExpiringReadWriteLocker.ts#L17">src/util/locking/ExpiringReadWriteLocker.ts:17</a></li>
<li>Defined in <a href="https://github.com/solid/community-server/blob/d01382d/src/util/locking/ExpiringReadWriteLocker.ts#L17">src/util/locking/ExpiringReadWriteLocker.ts:17</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>As <a href="util_locking_readwritelocker.readwritelocker.html#withreadlock">ReadWriteLocker.withReadLock</a> but the locked function gets called with a <code>maintainLock</code> callback function
to reset the lock expiration every time it is called.
The resulting promise will reject once the lock expires.</p>
</div>
<dl class="tsd-comment-tags">
<dt>param</dt>
<dd><p>Identifier of the resource that needs to be locked.</p>
</dd>
<dt>param</dt>
<dd><p>A function to execute while the resource is locked.
Receives a callback as input parameter to maintain the lock.</p>
</dd>
</dl>
</div>
<div class="tsd-type-declaration">
<h4>Type declaration</h4>
<ul class="tsd-parameters">
@@ -145,6 +129,13 @@
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>As <a href="util_locking_readwritelocker.readwritelocker.html#withreadlock">ReadWriteLocker.withReadLock</a> but the locked function gets called with a <code>maintainLock</code> callback function
to reset the lock expiration every time it is called.
The resulting promise will reject once the lock expires.</p>
</div>
</div>
<h4 class="tsd-type-parameters-title">Type parameters</h4>
<ul class="tsd-type-parameters">
<li>
@@ -155,9 +146,20 @@
<ul class="tsd-parameters">
<li>
<h5>identifier: <a href="ldp_representation_resourceidentifier.resourceidentifier.html" class="tsd-signature-type" data-tsd-kind="Interface">ResourceIdentifier</a></h5>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Identifier of the resource that needs to be locked.</p>
</div>
</div>
</li>
<li>
<h5>whileLocked: <span class="tsd-signature-symbol">(</span>maintainLock<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">&gt;</span></h5>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>A function to execute while the resource is locked.
Receives a callback as input parameter to maintain the lock.</p>
</div>
</div>
<ul class="tsd-parameters">
<li class="tsd-parameter-signature">
<ul class="tsd-signatures tsd-kind-type-literal">
@@ -204,25 +206,9 @@
<aside class="tsd-sources">
<p>Overrides <a href="util_locking_readwritelocker.readwritelocker.html">ReadWriteLocker</a>.<a href="util_locking_readwritelocker.readwritelocker.html#withwritelock">withWriteLock</a></p>
<ul>
<li>Defined in <a href="https://github.com/solid/community-server/blob/0a68fbf/src/util/locking/ExpiringReadWriteLocker.ts#L29">src/util/locking/ExpiringReadWriteLocker.ts:29</a></li>
<li>Defined in <a href="https://github.com/solid/community-server/blob/d01382d/src/util/locking/ExpiringReadWriteLocker.ts#L29">src/util/locking/ExpiringReadWriteLocker.ts:29</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>As <a href="util_locking_readwritelocker.readwritelocker.html#withwritelock">ReadWriteLocker.withWriteLock</a> but the locked function gets called with a <code>maintainLock</code>
callback function to reset the lock expiration every time it is called.
The resulting promise will reject once the lock expires.</p>
</div>
<dl class="tsd-comment-tags">
<dt>param</dt>
<dd><p>Identifier of the resource that needs to be locked.</p>
</dd>
<dt>param</dt>
<dd><p>A function to execute while the resource is locked.
Receives a callback as input parameter to maintain the lock.</p>
</dd>
</dl>
</div>
<div class="tsd-type-declaration">
<h4>Type declaration</h4>
<ul class="tsd-parameters">
@@ -232,6 +218,13 @@
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>As <a href="util_locking_readwritelocker.readwritelocker.html#withwritelock">ReadWriteLocker.withWriteLock</a> but the locked function gets called with a <code>maintainLock</code>
callback function to reset the lock expiration every time it is called.
The resulting promise will reject once the lock expires.</p>
</div>
</div>
<h4 class="tsd-type-parameters-title">Type parameters</h4>
<ul class="tsd-type-parameters">
<li>
@@ -242,9 +235,20 @@
<ul class="tsd-parameters">
<li>
<h5>identifier: <a href="ldp_representation_resourceidentifier.resourceidentifier.html" class="tsd-signature-type" data-tsd-kind="Interface">ResourceIdentifier</a></h5>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>Identifier of the resource that needs to be locked.</p>
</div>
</div>
</li>
<li>
<h5>whileLocked: <span class="tsd-signature-symbol">(</span>maintainLock<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">T</span><span class="tsd-signature-symbol">&gt;</span></h5>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>A function to execute while the resource is locked.
Receives a callback as input parameter to maintain the lock.</p>
</div>
</div>
<ul class="tsd-parameters">
<li class="tsd-parameter-signature">
<ul class="tsd-signatures tsd-kind-type-literal">
@@ -290,7 +294,7 @@
<nav class="tsd-navigation primary">
<ul>
<li class=" ">
<a href="../modules.html">Exports</a>
<a href="../modules.html">Modules</a>
</li>
<li class="current tsd-kind-module">
<a href="../modules/util_locking_expiringreadwritelocker.html">util/locking/<wbr>Expiring<wbr>Read<wbr>Write<wbr>Locker</a>