2018-10-03 23:20:04 +08:00
|
|
|
---
|
2020-09-14 22:47:49 +08:00
|
|
|
title: "unicode#spinners API"
|
2018-10-03 23:20:04 +08:00
|
|
|
description: "unicode#spinners API provides some basic functions for starting spinners timer"
|
|
|
|
---
|
|
|
|
|
|
|
|
# [Available APIs](../../) >> unicode#spinners
|
|
|
|
|
|
|
|
<!-- vim-markdown-toc GFM -->
|
|
|
|
|
|
|
|
- [Intro](#intro)
|
|
|
|
- [Functions](#functions)
|
|
|
|
|
|
|
|
<!-- vim-markdown-toc -->
|
|
|
|
|
|
|
|
## Intro
|
|
|
|
|
|
|
|
unicode#spinners API provides some basic functions for starting spinners timer
|
|
|
|
|
|
|
|
```vim
|
2019-01-07 21:15:22 +08:00
|
|
|
let s:SPI = SpaceVim#api#import('unicode#spinners')
|
2018-10-03 23:20:04 +08:00
|
|
|
call s:SPI.apply('dot1', 'g:dotstr')
|
|
|
|
set statusline+=%{g:dotstr}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Functions
|
|
|
|
|
|
|
|
| function name | description |
|
|
|
|
| ------------------------ | ------------------------------ |
|
|
|
|
| `apply(name, time, var)` | start a job, return the job id |
|