More universal processor style

This commit is contained in:
James Barnsley
2017-08-10 16:41:19 +12:00
parent fd46929ac3
commit d38c754103
6 changed files with 38 additions and 32 deletions

View File

@ -176,6 +176,20 @@ export function startProcess(key,content){
}
}
export function updateProcess(key,content){
return {
type: 'UPDATE_PROCESS',
key: key,
content: content
}
}
export function runProcess(key){
return {
type: key
}
}
export function cancelProcess(key){
return {
type: 'CANCEL_PROCESS',
@ -183,9 +197,9 @@ export function cancelProcess(key){
}
}
export function stopProcess(key){
export function processFinished(key){
return {
type: 'STOP_PROCESS',
type: 'PROCESS_FINISHED',
key: key
}
}