This is not GitHub.com

Like what you see? Install OctoLinker now!

Skip to content
#

promises

Here are 684 public repositories matching this topic...

GarthSnyder
GarthSnyder commented Feb 24, 2019

There's a blurb at the end of the Appendix document that reads:

So, if you want to start a chain by dispatching to the background, you have to use
DispatchQueue.async:

DispatchQueue.global().async(.promise) {
    return value  
}.done { value in
    //
}

However, this function cannot return a promise because of Swift compiler ambiguity
iss

Bilge
Bilge commented Mar 24, 2018

Trying to learn Amp is difficult for someone new to coroutines and async in the context of PHP. Although I appreciate the work that has been done on the documentation so far, I still find it lacking for giving good background to the topic and its use.

For me, it has been helpful to start thinking about the "async context". It seems to me that in Amp, in order to do anything with async you must

friday
friday commented Nov 1, 2017

The data argument in $.fetch() corresponds to the body argument in XMLHttpRequest.send(), which as per the MDN docs can be:

  • A Document
  • A BodyInit, which means either Blob (and hence also File), BufferSource, FormData, URLSearchParams, ReadableStream, or USVString

Depending on what th

zio
mvv
mvv commented Nov 24, 2019

I want to log error traces for better diagnostics, but combinators like catchAll/catchSome/tapError/foldM/etc strip traces off and their Cause-aware cousins like catchSomeCause catch many things besides errors.

Ideally, I would like to have something along the lines

final case class ErrorWithTrace[E](error: E, trace: Option[ZTrace])
object Error {
  def unapply[E](e: Er
EmilRehnberg
EmilRehnberg commented Nov 7, 2019

I am having issues with nested future calls.

Here I'm using mlr3 and furrr, both using future package. When using them both together I'm having issues to have the parallelized calls to terminate.

library(magrittr)
library(mlr3)
library(mlr3learners)
dtas_lst <-
  list(
    dta1 = iris %>% dplyr::select(-Species) %>% utils::head(75),
    dta2 = iris %>% dplyr::select(-Spe
tresf
tresf commented Oct 17, 2018

Placeholder to document fetch API and eventually update wiki and sample with fetch() examples.

Working example, tested with Chrome, Firefox, Safari, Edge:

qz.security.setCertificatePromise((resolve, reject) => {
 fetch("assets/digital-certificate.txt", {cache: 'no-store', headers: {'Content-Type': 'text/plain'}})
  .then(data => resolve(data.text()));
});

qz.security.setSignat
JakeChampion
JakeChampion commented Feb 8, 2018

Expected:

> Object.getOwnPropertyDescriptor(global,'Promise');
{ value: [Function: Promise],
  writable: true,
  enumerable: false,
  configurable: true }

> global.Promise.name
'Promise'

Actual:

> Object.getOwnPropertyDescriptor(global,'Promise');
{ value:
   { [Function]
     default: [Circular],
     resolve: [Function],
     reject: [Function],
     race:

Improve this page

Add a description, image, and links to the promises topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the promises topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.