question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Writing complex actors

See original GitHub issue

I need to create a complex actor using some private methods to update the internal state, but I cannot find any useful base class to implement ActorJob.

What is the best practice in such case?

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:21
  • Comments:74 (32 by maintainers)

github_iconTop GitHub Comments

46reactions
totemcafcommented, Dec 13, 2020

We are starting a new project and Actors model fits perfectly. I wonder that using Kotlin Actors requires to mark all code with @ObsoleteCoroutinesApi.

Do we have any progress on the actors implementation replacement?

14reactions
adam-aroldcommented, Nov 23, 2018

What is your suggestion for those who want to use actors in the meantime (until actors come out of the experimental stage)? I’m currently working on a multiplatform library, so using coroutines to enable concurrency is very convenient, but I’m a bit puzzled about the best way (currently) to go about implementing something like a complex actor in your examples (A class which has suspending functions which work on shared mutable state).

Read more comments on GitHub >

github_iconTop Results From Across the Web

The 30 Best Actor-Writers | Complex
Justin Theroux Rashida Jones Danny McBride Jason Segel Tyler Perry Lena Dunham George Clooney Jim Rash Danny Strong Miranda July Tim Robbins Tina...
Read more >
The Key to Writing Complex Characters - By Britton Perelman
Characters are not real, but they should breathe life just like you or me. And the best ones do. Forrest Gump. Captain Jack...
Read more >
8 Writing Tips from an Actor: How Acting Taught Me To Write
8 Writing Tips from an Actor: How Acting Taught Me To Write · 1. Work on the Self · 2. Give Up Control...
Read more >
Craft: How To Write To Attract A Movie Star - Script Magazine
Make sure there are at least one or two killer speeches in your script. They needn't and shouldn't go on forever, but they...
Read more >
10 Actors Who Wrote The Movies They Starred In - TheThings
Writing their own scripts allows them to write their dream role which they ... difficult especially when actors find themselves "type-cast.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Hashnode Post

No results found