Need some guidance on getting Async to work ... #209
Unanswered
jcogs-design
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone.
Hopefully someone can see what I'm doing wrong here, and let me know how to get this to work...
The following code works if run on system where
isSupported()
returns false, but fails on systems whereisSupported()
returns true.Putting a debugger on this indicates that the
$pool->add()
step is run, but the->then()
and->catch()
steps are never called when async is supported. When not supported, the steps inadd()
andthen()
are executed serially.Separately I have confirmed that the
@file_get_contents()
step returns data with the values of$url
and$context
provided.Thanks in advance for any help anyone can offer.
Beta Was this translation helpful? Give feedback.
All reactions