Movatterモバイル変換


[0]ホーム

URL:


Scala 3
3.7.4
LearnInstallPlaygroundFind A LibraryCommunityBlog
Scala 3
LearnInstallPlaygroundFind A LibraryCommunityBlog
DocsAPI
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL
Scala 3/scala/scala.concurrent/Promise

Promise

scala.concurrent.Promise
See thePromise companion trait
objectPromise

Attributes

Companion
trait
Source
Promise.scala
Graph
Supertypes
classObject
traitMatchable
classAny
Self type
Promise.type

Members list

Value members

Concrete methods

finaldefapply[T]():Promise[T]

Creates a promise object which can be completed with a value.

Creates a promise object which can be completed with a value.

Type parameters

T

the type of the value in the promise

Attributes

Returns

the newly createdPromise instance

Source
Promise.scala
finaldeffailed[T](exception:Throwable):Promise[T]

Creates an already completed Promise with the specified exception.

Creates an already completed Promise with the specified exception.

Type parameters

T

the type of the value in the promise

Attributes

Returns

the newly createdPromise instance

Source
Promise.scala
finaldeffromTry[T](result:Try[T]):Promise[T]

Creates an already completed Promise with the specified result or exception.

Creates an already completed Promise with the specified result or exception.

Type parameters

T

the type of the value in the promise

Attributes

Returns

the newly createdPromise instance

Source
Promise.scala
finaldefsuccessful[T](result:T):Promise[T]

Creates an already completed Promise with the specified result.

Creates an already completed Promise with the specified result.

Type parameters

T

the type of the value in the promise

Attributes

Returns

the newly createdPromise instance

Source
Promise.scala
In this article
Generated with
Copyright (c) 2002-2025, LAMP/EPFL
Copyright (c) 2002-2025, LAMP/EPFL

[8]ページ先頭

©2009-2025 Movatter.jp