Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7875669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:01:29+00:00 2026-06-03T03:01:29+00:00

I have a .net class which makes a HTTP Request to a controller in

  • 0

I have a .net class which makes a HTTP Request to a controller in play but my controller has to make the request wait and after some time i have to make response to the request . I tried using Promise but can’t figure out how to achieve this need help to solve this…

Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T03:01:30+00:00Added an answer on June 3, 2026 at 3:01 am

    Awaiting is generally not the best idea. What you probably want to do in this instance is create an Akka actor that gets ping’d by the Scheduler every so often. When it receives that ping message it would check if the condition you’re looking for exists and would notify all the actor-refs that registered interest in that event.

    When you send a message to an akka actor via the ask pattern, the sender for that message is an actor backing the Future which is fulfilled once that backing actor is sent a message.

    Play 2.0 has a simple way of turning an Akka Future into a Play Promise. And there you have it, asynchronous programming with Akka and Play!

    So in summary, your Actor needs to react to two messages:
    RegisterListener
    Ping

    RegisterListener is the message you send using the ask pattern, The actor will need to retain a reference to the sender of that listener so that it can be notified when the condition is fulfilled.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a MustInherit .NET class which declares a constructor with an integer parameter.
I have a .NET 2.0 class the properties of which are marked virtual.I need
I have this middleware which is the first: class RedirectIt require net/https require uri
I have an XML class inside a .NET 3.5 project which is the top
For some reason when I attempt to make a request to an Ajax.net web
http://jsfiddle.net/JamesKyle/re73T/ Trying to make a class switcher that will do the following: On Load
I have a Web API controller action which has a parameter of type CommandMessage.
If I have a .Net class that is not part of any namespace then
How can I invoke overloaded generic method in IronRuby? I have a .NET class
I have the following .Net class: public class Product { public int ID {get;set;}

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.