tag:robotlegs.tenderapp.com,2009-10-18:/discussions/questions/941-promise-pending-status-progress-in-amf-servicesRobotlegs: Discussion 2018-10-18T16:35:40Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/168407272012-06-23T07:00:59Z2012-06-23T07:20:37ZPromise PENDING status & Progress in AMF Services<div><p>Hello,</p>
<p>I looked quickly in this knowledge base for answers to my
questions but I couldn't find. So hopefully I am not repeating
questions that were already answered.</p>
<p>I am new to the Robotlegs world and I am starting to get the
grip of things around here. Lately I was trying to get the services
working, when I came across the Promise. Examining the Promise, I
cannot see any statement that sets the status of the Promise to
"PENDING".</p>
<p>I would think that this should be done inside the handleProgress
function, but not really 100% sure.</p>
<p>I have another quick questions... how can we detect the progress
of an AMF service call? I ended up just deleting the "progress"
code from my custom Promise class, but if I can find a way to
detect it I think it would be very useful.</p>
<p>Thanks,</p></div>mbarjawitag:robotlegs.tenderapp.com,2009-10-18:Comment/168407272012-06-23T23:59:41Z2012-06-24T04:31:18ZPromise PENDING status & Progress in AMF Services<div><p>What is this? is this spam coming from
knowledge.robotlegs.com??!!</p>
<p>I got the following message into my email:</p>
<p>"From: larsongenadiy Subject: Promise PENDING status &
Progress in AMF Services</p>
<p>Generic Priligy (Dapoxetine)</p>
<p>Result Report<br>
Worn out take on<br>
Dapoxetine is associated with a category of exacting this reuptake
inhibitors (SSRIs). This discrete to short-acting inhibitor is
utilized to divest oneself of b satirize safe keeping of alacritous
ejaculation that phiz men."</p>
<p>Its a long message so I don't want to put it all over here. If
you want it, let me know and I can post the rest of it."</p>
<p>The question: what is this ?? Spam?!!</p>
<p>Finally, wow... I thought my question was simple... no replies
so far... I guess everybody is busy.</p>
<p>Thanks,</p></div>mbarjawitag:robotlegs.tenderapp.com,2009-10-18:Comment/168407272012-06-24T15:46:27Z2012-06-24T15:56:08ZPromise PENDING status & Progress in AMF Services<div><p>Hello,</p>
<blockquote>
<p>The question: what is this ?? Spam?!!</p>
</blockquote>
<p>Yes, it was spam, but the spam isn’t coming from our
knowledge base.<br>
Rather vice versa: the forum has being misused by spammers.<br>
There is a spam filter, which is not always working as expected,
and when that happens, we have to remove the spam-mails manually,
which I did yesterday with one of 2 spam-responses to your
post.</p>
<p>I have no idea about the logic behind spamming, but I’ve
heard from spam bots hacking gmail accounts and using them to spam
forums. Hopefully your account is o.k.!</p>
<blockquote>
<p>Finally, wow... I thought my question was simple... no replies
so far... I guess everybody is busy.</p>
</blockquote>
<p>Yeah, on weekends people are usually busy… enjoying the
weekend ;)<br>
Joking aside, not many people use Promises, that’s probably
why no one has answered until now.</p>
<p>I’ll notify Shaun Smith about your post. Since Promises
are his creation, he can give you the most competent answer :)</p>
<p>Sorry for not being able to help you any further.</p>
<p>Cheers,<br>
Ondina</p></div>Ondina D.F.tag:robotlegs.tenderapp.com,2009-10-18:Comment/168407272012-06-24T19:43:44Z2012-06-24T19:43:44ZPromise PENDING status & Progress in AMF Services<div><p>Hello,</p>
<p>I was away this weekend with no internet access. Unfortunately
that Promise implementation does not have a <code>PENDING</code>
state - I've been meaning to rewrite that code for ages, but just
haven't had the time for it. It's not a very good implementation as
I wrote it without doing much research. A little while later I came
across this: <a href=
"http://wiki.commonjs.org/wiki/Promises">http://wiki.commonjs.org/wiki/Promises</a></p>
<p>Perhaps this library will work better for you: <a href=
"https://github.com/jonnyreeves/as3-async">https://github.com/jonnyreeves/as3-async</a></p></div>Shaun Smithtag:robotlegs.tenderapp.com,2009-10-18:Comment/168407272012-06-25T16:05:22Z2012-06-25T16:05:22ZPromise PENDING status & Progress in AMF Services<div><p>ok, so I wrote my reply without actually looking at any code
:/</p>
<p><code>pending</code> is actually just the default state:</p>
<p><a href=
"https://github.com/darscan/robotlegs-extensions-Oil/blob/master/src/org/robotlegs/oil/async/Promise.as#L61">
https://github.com/darscan/robotlegs-extensions-Oil/blob/master/src...</a></p></div>Shaun Smithtag:robotlegs.tenderapp.com,2009-10-18:Comment/168407272012-06-25T16:23:47Z2012-06-25T16:27:07ZPromise PENDING status & Progress in AMF Services<div><p>Thank you for your replies.</p>
<p>I am not sure about spam as well... and I hope its not my
account that caused the spam. This is the first time I see spam
like this... usually I would just get a spam email to my email
account... but to get it as a reply to one of my posts.. that was
strange.</p>
<p>The as3-async library looks really interesting and useful. I
wounder why</p>
<blockquote>
<p>not many people use promises??!</p>
</blockquote>
<p>Is it really the case? I thought they were very useful! Why
people are not using them though? is there an alternative that I
should be considering?</p>
<p>Ohh!! I really missed that default state.. sorry for that. I
should have examined the code better before posting. Thank you
Shaun for finding that out.</p>
<p>Thanks,</p></div>mbarjawitag:robotlegs.tenderapp.com,2009-10-18:Comment/168407272012-06-25T17:04:09Z2012-06-25T17:04:09ZPromise PENDING status & Progress in AMF Services<div><blockquote>
<p>I am not sure about spam as well... and I hope its not my
account that caused the spam. This is the first time I see spam
like this... usually I would just get a spam email to my email
account... but to get it as a reply to one of my posts.. that was
strange.</p>
</blockquote>
<p>As I said, I have no idea how it happens, but it is as annoying
for us as it is for you, and we can’t do much about it,
except from marking such posts as spam and deleting them from the
forum as soon as we notice them. It also happens, from time to
time, that normal posts are “false positive”, marked as
spam by Tender’s spam filter…also, a very unpleasant
situation for everyone.<br>
Sorry for the inconvenience, it’s all I can say :)</p>
<blockquote>
<p>I wounder why <code>not many people use promises??!</code> Is it
really the case? I thought they were very useful!</p>
</blockquote>
<p>Maybe I wrongly assumed that not many people use promises. They
are indeed very useful and easy to use, that’s probably why
not many users ask questions about promises on the forum. I
haven’t used them because the projects I’ve been
working on for the last year didn’t require such a
feature.</p>
<p>Enjoy Promises and Robotlegs:)</p></div>Ondina D.F.tag:robotlegs.tenderapp.com,2009-10-18:Comment/168407272012-06-26T16:49:05Z2012-06-26T16:49:05ZPromise PENDING status & Progress in AMF Services<div><p>Thank you all for your efforts to keep this forum spam-free, and
thanks for all the replies and answers to my question. My question
is answered.</p></div>mbarjawi