package Ġcom . bad oo . reak t ive . dis posable Ċ Ċ import Ġcom . bad oo . reak t ive . test . do In Background Blocking Ċ import Ġkotlin . test . Test Ċ import Ġkotlin . test . assertTrue Ċ Ċ class ĠDis posable Builder With Callback Jvm Native Test Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġis Disposed _ returns _ true _ IF _ dis posed _ from _ another _ thread () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġdis posable Ġ= ĠDis posable Ġ{} ĊĊĠĠĠĠĠĠĠ Ġdo In Background Blocking ( block Ġ= Ġdis posable :: dispose ) ĊĊĠĠĠĠĠĠĠ ĠassertTrue ( dis posable . is Disposed ) ĊĠĠĠ Ġ} Ċ } Ċ