| 32 | } |
| 33 | |
| 34 | static Value TestRef(const CallbackInfo& info) { |
| 35 | Function cb = info[1].As<Function>(); |
| 36 | |
| 37 | auto tsfn = ThreadSafeFunction::New(info.Env(), cb, "testRes", 1, 1); |
| 38 | |
| 39 | tsfn.BlockingCall(); |
| 40 | tsfn.Unref(info.Env()); |
| 41 | tsfn.Ref(info.Env()); |
| 42 | |
| 43 | return info.Env().Undefined(); |
| 44 | } |
| 45 | |
| 46 | } // namespace |
| 47 |
nothing calls this directly
no test coverage detected