webmcp
annotate framework/env/execute/finalizers.lua @ 380:16baed4c0483
Extended _column_info table to be an associative array as well (in addition to a sequence); Allow direct (proxy) access to fields of JSON object in a special column (completed write access)
| author | jbe |
|---|---|
| date | Mon Nov 16 01:33:02 2015 +0100 (2015-11-16) |
| parents | 1fcdd5c6f498 |
| children |
| rev | line source |
|---|---|
| jbe@208 | 1 --[[-- |
| jbe@208 | 2 execute.finalizers() |
| jbe@208 | 3 |
| jbe@321 | 4 Executes that code in initializers which is placed after execute.inner(). This function is automatically called when a forked process terminates. It may be called in interactive mode to perform a clean shutdown. |
| jbe@208 | 5 |
| jbe@208 | 6 --]]-- |
| jbe@208 | 7 |
| jbe@208 | 8 function execute.finalizers() |
| jbe@208 | 9 for i = #execute._finalizers, 1, -1 do |
| jbe@208 | 10 execute._finalizers[i]() |
| jbe@277 | 11 execute._finalizers[i] = nil |
| jbe@208 | 12 end |
| jbe@208 | 13 end |