Fulfill[A: Any #share, B: Any #share]

[Source]

A function from A to B that is called when a promise is fulfilled.

interface iso Fulfill[A: Any #share, B: Any #share]

Public Functions

apply

[Source]

fun ref apply(
  value: A)
: B ?

Parameters

  • value: A

Returns

  • B ?

© 2016-2020, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/promises-Fulfill