| 1 | -- template for asynchronous widet types |
| 2 | -- Copyright (C) 2019 Nguyễn Gia Phong <[email protected]m> |
| 3 | -- |
| 4 | -- This file is part of Vicious. |
| 5 | -- |
| 6 | -- Vicious is free software: you can redistribute it and/or modify |
| 7 | -- it under the terms of the GNU General Public License as |
| 8 | -- published by the Free Software Foundation, either version 2 of the |
| 9 | -- License, or (at your option) any later version. |
| 10 | -- |
| 11 | -- Vicious is distributed in the hope that it will be useful, |
| 12 | -- but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | -- GNU General Public License for more details. |
| 15 | -- |
| 16 | -- You should have received a copy of the GNU General Public License |
| 17 | -- along with Vicious. If not, see <https://www.gnu.org/licenses/>. |
| 18 | |
| 19 | local helpers = require"vicious.helpers" |
| 20 | |
| 21 | return helpers.setasyncall{ |
| 22 | async = function (format, warg, callback) |
| 23 | -- In here there should be some asynchronous function |
| 24 | -- from vicious.spawn or helpers.sysctl_async |
| 25 | -- that call callback on the result. |
| 26 | end } |
| 27 | |
| 28 | -- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 |