package Ġga . nk 2 ish ere . dev . base Ċ Ċ import Ġcom . jak ew h art on . rx relay 2 . Publish Relay Ċ import Ġga . nk 2 ish ere . dev . utils . subscribe D Ċ import Ġio . reactivex . dis pos ables . Composite Disposable Ċ import Ġtim ber . log . Tim ber Ċ Ċ class ĠGlobal Event Relay ( private Ġval Ġrelay : ĠPublish Relay < Global Event > Ġ= ĠPublish Relay . create < Global Event >()) Ġ{ ĊĠĠĠ Ġval Ġdis posable Ġ= ĠComposite Disposable () ĊĊĠĠĠ Ġinternal Ġfun Ġsubscribe ( onNext : Ġ( event : ĠGlobal Event ) Ġ-> ĠUnit ) Ġ{ ĊĠĠĠĠĠĠĠ Ġrelay . subscribe D ( onNext , Ġ{}, Ġdis posable ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġaccept Global Event ( event : ĠGlobal Event ) Ġ{ ĊĠĠĠĠĠĠĠ ĠTim ber . tag (" APPLICATION Ġ-> ĠGE "). i ( event . toString ()) ĊĠĠĠĠĠĠĠ Ġrelay . accept ( event ) ĊĠĠĠ Ġ} Ċ } Ċ Ċ open Ġclass ĠGlobal Event