aboutsummaryrefslogtreecommitdiff
path: root/api1/pl.treksoft.kvision.cordova/-result/of.html
blob: 2ec289d90fbf7af6e9758627f7ede27f42af023f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<HTML>
<HEAD>
<meta charset="UTF-8">
<title>Result.of - kvision</title>
<link rel="stylesheet" href="../../../style.css">
</HEAD>
<BODY>
<a href="../../index.html">kvision</a>&nbsp;/&nbsp;<a href="../index.html">pl.treksoft.kvision.cordova</a>&nbsp;/&nbsp;<a href="index.html">Result</a>&nbsp;/&nbsp;<a href="./of.html">of</a><br/>
<br/>
<h1>of</h1>
<a name="pl.treksoft.kvision.cordova.Result.Companion$of(pl.treksoft.kvision.cordova.Result.Companion.of.V, kotlin.Function0((java.lang.Exception)))"></a>
<code><span class="keyword">fun </span><span class="symbol">&lt;</span><span class="identifier">V</span>&nbsp;<span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html"><span class="identifier">Any</span></a><span class="symbol">&gt;</span> <span class="identifier">of</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.cordova.Result.Companion$of(pl.treksoft.kvision.cordova.Result.Companion.of.V, kotlin.Function0((java.lang.Exception)))/value">value</span><span class="symbol">:</span>&nbsp;<a href="of.html#V"><span class="identifier">V</span></a><span class="symbol">?</span><span class="symbol">, </span><span class="identifier" id="pl.treksoft.kvision.cordova.Result.Companion$of(pl.treksoft.kvision.cordova.Result.Companion.of.V, kotlin.Function0((java.lang.Exception)))/fail">fail</span><span class="symbol">:</span>&nbsp;<span class="symbol">(</span><span class="symbol">)</span>&nbsp;<span class="symbol">-&gt;</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-exception/index.html"><span class="identifier">Exception</span></a>&nbsp;<span class="symbol">=</span>&nbsp;{ Exception() }<span class="symbol">)</span><span class="symbol">: </span><a href="index.html"><span class="identifier">Result</span></a><span class="symbol">&lt;</span><a href="of.html#V"><span class="identifier">V</span></a><span class="symbol">,</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-exception/index.html"><span class="identifier">Exception</span></a><span class="symbol">&gt;</span></code><br/>
<a name="pl.treksoft.kvision.cordova.Result.Companion$of(kotlin.Function0((pl.treksoft.kvision.cordova.Result.Companion.of.V)))"></a>
<code><span class="keyword">fun </span><span class="symbol">&lt;</span><span class="identifier">V</span>&nbsp;<span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html"><span class="identifier">Any</span></a><span class="symbol">, </span><span class="identifier">E</span><span class="symbol">&gt;</span> <span class="identifier">of</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.cordova.Result.Companion$of(kotlin.Function0((pl.treksoft.kvision.cordova.Result.Companion.of.V)))/f">f</span><span class="symbol">:</span>&nbsp;<span class="symbol">(</span><span class="symbol">)</span>&nbsp;<span class="symbol">-&gt;</span>&nbsp;<a href="of.html#V"><span class="identifier">V</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="index.html"><span class="identifier">Result</span></a><span class="symbol">&lt;</span><a href="of.html#V"><span class="identifier">V</span></a><span class="symbol">,</span>&nbsp;<a href="of.html#E"><span class="identifier">E</span></a><span class="symbol">&gt;</span></code>
</BODY>
</HTML>