Coder Social home page Coder Social logo

Comments (4)

Quinn-With-Two-Ns avatar Quinn-With-Two-Ns commented on July 18, 2024 2

I updated the github issue to reflect the actual issue

from samples-go.

ioannist avatar ioannist commented on July 18, 2024 1

I was actually wondering the same thing. It seems that workflow "goroutines" are not really goroutines in the Go sense.

It should be more clear how workflow goroutines differ from actual goroutines.

I was also wondering what are the advantages/disadvantages of branch or splitmerge-selector vs. goroutine examples. They seem to be serving very similar use cases, very differently. It's probably worth it to cross-reference and compare the two in their respective descriptions.

from samples-go.

xxgreg avatar xxgreg commented on July 18, 2024

So according to this comment - this isn't a race condition.

https://community.temporal.io/t/is-workflow-go-safe-for-concurrency/6722

from samples-go.

Quinn-With-Two-Ns avatar Quinn-With-Two-Ns commented on July 18, 2024

Yes this is thread safe as only one coroutine is ever run at a time. I see no harm in adding an extra comment explaining why

from samples-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.