[Service] Provide iteration API setServiceInterval 62/218062/4
authorYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 19 Nov 2019 02:43:03 +0000 (18:43 -0800)
committerSangYong Park <sy302.park@samsung.com>
Tue, 31 Dec 2019 00:35:04 +0000 (00:35 +0000)
commitb017416c2d8597c1bc99f4bb847e99b44fd6ccc5
tree008244849e28e036ac41c2a5087eb776c74c526f
parent31da1d9b3ffa7df5fdc2c538267f1a9773827d90
[Service] Provide iteration API setServiceInterval

This provides the use of service iteration and usage is like below:

* API:
setServiceInterval(function, after, repeat);

* Parameters:
{func} The function |func| will run.
{repeat} The number of iteration is |repeat|.
         The value 0 means infinite and default.
{after} The iteration interval is |after| ms and default is 1000 ms.

Change-Id: I5e50ddf9c11f6b7a49cf48aa4c526698c044794f
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
wrt_app/service/timer_manager.js
wrt_app/src/runtime.js