Giter Site home page Giter Site logo

Add abortable lock about consuldotnet HOT 4 CLOSED

playfab avatar playfab commented on May 27, 2024
Add abortable lock

from consuldotnet.

Comments (4)

highlyunavailable avatar highlyunavailable commented on May 27, 2024

https://msdn.microsoft.com/en-us/library/ty8d3wta.aspx

from consuldotnet.

rmul avatar rmul commented on May 27, 2024

I have an issue and would like to check if you think this is related:
When a semaphore has been aqcuired and the session gets lost (for instance use the api to destroy the session) the RenewPeriodic method throws a "Session no longer exists" exception but catches that also and a cycle later a "Session timed out" exception is thrown which is not handled by the semaphore.acquire method.
If it is not related I am more than willing to create a new issue and help out with it.

from consuldotnet.

highlyunavailable avatar highlyunavailable commented on May 27, 2024

@rmul Thanks for your report. That issue with semaphores and sessions is actually a separate issue and I'll look into it today.

This specific issue (#4) is more an enhancement - one of our developers requested that there be a type of lock that will thread.abort the code in the context of the lock if the lock was lost and it hadn't cancelled cleanly before the LockDelay expired.

from consuldotnet.

highlyunavailable avatar highlyunavailable commented on May 27, 2024

@matt-augustine https://github.com/PlayFab/consuldotnet/blob/develop/Consul/Lock.cs#L774 Have fun!

from consuldotnet.

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.