getFunction gets function from HandleStore (internal use)
(id int32)
| 793 | |
| 794 | // getFunction gets function from HandleStore (internal use) |
| 795 | func (ctx *Context) loadFunctionFromHandleID(id int32) interface{} { |
| 796 | if ctx == nil || ctx.handleStore == nil || id <= 0 { |
| 797 | return nil |
| 798 | } |
| 799 | fn, _ := ctx.handleStore.Load(id) |
| 800 | return fn |
| 801 | } |
| 802 | |
| 803 | // SetInterruptHandler sets a interrupt handler. |
| 804 | // |