InoDrive / UserApp / dispose


InoDrive.UserApp.dispose()

Dispose Process thread for Polling User Application.

Returns: Nothing

// Import InoDrive API Library
import { InoDriveApiJS }  from "ck-inodrive-api" 

// Instatiate the API
let InoDriveApi = new InoDriveApiJS.InoDriveApi({ connectAppUrl: "", secure: false })

// Instantiate InoDrive Object
let Drive = await InoDriveApi.InoDrive({ target: "Name", autoConnect: true })

# Start polling User Application to update Variable List
await Drive.UserApp.startPoll()

# Dispose Connection and User Application Instance
await Drive.UserApp.dispose()