Giter Club home page Giter Club logo

contextual's Introduction


๐Ÿ‘‹ Hi there!

My name is Oleksii and I do open source for fun. The projects you will find on this profile are just random things I've built at one point or another to make my life easier. Hopefully they can be useful to you as well!

Socials

Blog YouTube Twitter Discord

Stats

contextual's People

Contributors

tyrrrz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

contextual's Issues

Usage question

Hey there,
I came across this yesterday, it looks quite useful. I am working on a small application (a Discord.Net bot) in which I was going to offer a few choices of database backend (LiteDB, SQLite, MySQL, etc). At the same moment I was trying to determine how I would like to go about being able pass around the database context of whichever one was chosen by the user, I came across this. From the looks of it, unless I am mistaken, this should be pretty ideal for something like that?

Thanks,
-MH

Guard against multiple disposings

This is great Alexy!!
Not really an issue, just a discussion.

  1. Your disposable utility does not guard against multiple disposings. With the current implementation, storing previous in the disposable function's closure, this will not introduce a bug... yet.

  2. This code does not guard against out-of-order disposals ... this would be the biggest potential bug. You need to throw a suitable exception when user code disposes out of order.

  3. It's recommended to use immutable types when storing in AsyncLocal. I like how you've just provided a base class and let the user roll their own ... do you have any thoughts about how to safeguard with immutables? https://blog.stephencleary.com/2013/04/implicit-async-context-asynclocal.html

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.