Talk:Methods

From Reia

Jump to: navigation, search

Do method calls allow blocking to obtain the return value of a method? I suppose something like:

ticket = account<-login("foo", "bar")

would roughly translate into pseudo-erlang:

account ! login { "foo", "bar" } receive

   { ticket, Ticket } ->
       -- do something

end

What about timeouts?

Thanks

Personal tools