as far as I know, only Perl can do that:
https://www.eventbrite.com/e/temporally-quaquaversal-virtual-nanomachine-programming-in-multiple-topologically-connected-quantum-tickets-3425548909?aff=estw#
On Tue, 14 May 2019 at 11:39, Vlad Patryshev wrote:
> I'm just curious if we could apply this ap
On Monday, 13 May 2019 21:39:58 UTC-4, Vlad Patryshev wrote:
>
> I'm just curious if we could apply this approach to other problems. Like
> "I want this code decrypted right away, not 1000 years from now. Can Scala
> do that, instead of making me wait?
>
Yesjust do it synchronously?
>
I'm just curious if we could apply this approach to other problems. Like "I
want this code decrypted right away, not 1000 years from now. Can Scala do
that, instead of making me wait?
Thanks,
-Vlad
On Sat, May 11, 2019 at 4:49 PM tushar pandit
wrote:
> Thanks Steven. Can I; in any way modify t
You can use `Await#result`, just give the wait time (`atMost`) as
`Duration.Inf``
https://www.scala-lang.org/api/2.12.3/scala/concurrent/duration/Duration.html
On Sat, May 11, 2019 at 4:49 PM tushar pandit
wrote:
> Thanks Steven. Can I; in any way modify the code to not have a Future? I
> mean
Thanks Steven. Can I; in any way modify the code to not have a Future? I
mean I need the response immediately and not in the future and using await
is not an option here as I don't know the actual duration each request will
take.
On Tuesday, May 7, 2019 at 10:00:41 PM UTC-5, Steven Parkes wrote
The issue is here is that the `onComplete` call is async (assuming
https://github.com/daggerrz/druid-scala-client is the library you're using)
It looks like `DruidClient#apply` returns a `Future`:
https://github.com/daggerrz/druid-scala-client/blob/master/src/main/scala/com/tapad/druid/client/Drui
Scala is an expression oriented language, so the last thing you refer to is
returned.
def foo: Int = 3
returns 3. There is no need to use the return keyword, indeed its use can
complicate matters as you can create non-local returns, which I suspect is
what is confusing you in your example.
There
now I need to return* this object
On Tuesday, May 7, 2019 at 9:18:26 PM UTC-5, tushar pandit wrote:
>
> Yeah. I am sorry to put it in a confusing manner. Yeah I am working with
> Druid in Scala, but my question is about Scala code itself. So consider I
> get some data from some data store (in my
Yeah. I am sorry to put it in a confusing manner. Yeah I am working with
Druid in Scala, but my question is about Scala code itself. So consider I
get some data from some data store (in my case it is Druid), I get the
dataset in an object and now I need to pass this object to the calling
functi
Tushar, this seems to be an issue with whatever Druid is. This mailing list
is for questions about Functional Programming in Scala, both in general and
more specifically the book with that title. If you ask your question in a
more relevant forum somebody may be able to provide you with an answer.
Hi,
I am trying to call function fetchFromDruid
def main(args: Array[String]): Unit = {
val res = fetchFromDruid()
// res comes as null here
}
def fetchFromDruid(): GroupByResponse {
implicit val executionContext = ExecutionContext.Implicits.global
val client = DruidClient("http://local
11 matches
Mail list logo