Add opCast(bool) to FreeListRef and remove opAssign with value type.
This commit is contained in:
parent
ecd981b1e1
commit
b68d23f515
2 changed files with 3 additions and 2 deletions
|
@ -1143,7 +1143,7 @@ Future!(ReturnType!CALLABLE) async(CALLABLE, ARGS...)(CALLABLE callable, ARGS ar
|
|||
Future!RET ret;
|
||||
ret.init();
|
||||
static void compute(FreeListRef!(shared(RET)) dst, CALLABLE callable, ARGS args) {
|
||||
dst = cast(shared(RET))callable(args);
|
||||
dst.get = cast(shared(RET))callable(args);
|
||||
}
|
||||
static if (isWeaklyIsolated!CALLABLE && isWeaklyIsolated!ARGS) {
|
||||
ret.m_task = runWorkerTaskH(&compute, ret.m_result, callable, args);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue