superloach / stop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

stop it

proof-of-concept system for automatically managing a function context in go.

todo

  • make Never private
  • remove Handle type
  • add GoNothing (again)
  • gofumpt
  • automagically pass context down to children
  • free context after function exit (refcount for children)
  • look upwards into call stack
  • implement a trimap?
  • add Yield function which fetches the Handle for the current fn
  • graceful handling instead of panic (in some cases)
  • remove debug logs
  • add warning message to any program that uses this
  • replace trimap with a non-generic implementation
  • simplify ctxMap to have single-type keys
  • add proper tests
  • integrate with stdlib context?
  • add docs

license

this software is provided without warranty, primarily for educational purposes. you are free to use this code for any purpose, although it is not recommended in any critical use cases.

About


Languages

Language:Go 100.0%