From: Maarten Koopmans <maarten.koopm...@gmail.com>
Date: Tue, 11 Sep 2012 02:35:52 -0700 (PDT)
Local: Tues, Sep 11 2012 5:35 am
Subject: Re: [go-nuts] Blocking function calls into a goroutine
I'm new to go bit have done a lot of "messaging" (e.g. actors in Scala).
I *think* you need to change your thinking on this: forget about blocking If that's the case then your solution would be:
1) a unique goroutine that reads from a channel and then performs logic If the clients needs a return value it can pass in a channel in the request What helps me with Go is if I think of goroutines of logic on top of queues --Maarten
Op dinsdag 11 september 2012 09:00:19 UTC+2 schreef Tahir Hashmi het > On Tuesday, September 11, 2012 11:57:43 AM UTC+5:30, Rémy Oudompheng wrote:
>> This is surprising. Why wasn't it working ? >> Rémy. > One of the reasons why this was not working was because I was writing the > func foo {
> // do whatever else
> The coarse-grained locking meant that I had some conditions under which > -- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||