package Ġcom . ms a . on ew ay . core ĊĊ Ċ /** Ċ Ġ* ĠCreated Ġby ĠAb hi ĠM uk the es war ar Ġon Ġ 1 9 - Aug ust - 2 0 2 0 Ċ Ġ*/ Ċ Ċ @ Suppress (" Le aking This ") Ċ abstract Ġclass ĠBase Side Effect ( ĊĠĠĠ Ġprivate Ġval Ġstore : ĠStore <* >, ĊĠĠĠ Ġprivate Ġval Ġthread Executor : ĠThread Executor Ċ ) Ġ: ĠSide Effect Ġ{ ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ Ġstore . side Effects . add ( this ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġget Action Thread Executor () Ġ= Ġthread Executor ĊĊĠĠĠ Ġfun Ġdispatch ( action : ĠAction ) Ġ{ ĊĠĠĠĠĠĠĠ Ġstore . dispatch ( action ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Suppress (" UN CHECK ED _ CAST ") ĊĠĠĠ Ġfun Ġ< S Ġ: ĠState > Ġstate (): ĠS Ġ= Ġstore . state Ġas ĠS Ċ }