vb.net中的Thread.Resume()和Thread.Suspend()的替代方法
// data:
nodes = [
{ id: 'n1', propositions: ['p'] },
{ id: 'n2', propositions: ['p'] },
{ id: 'n3', propositions: ['p'] }
];
edges = [
{ source: 'n1', target: 'n2' },
{ source: 'n2', target: 'n1' },
{ source: 'n1', target: 'n3' },
{ source: 'n2', target: 'n3' }
];
// initial partition
initialPartition = [
{ id: 'n1', propositions: ['p'] },
{ id: 'n2', propositions: ['p'] },
{ id: 'n3', propositions: ['p'] }
];
// second partition
secondPartition = [
[
{ id: 'n1', propositions: ['p'] },
{ id: 'n2', propositions: ['p'] }
],
{ id: 'n3', propositions: ['p'] }
];
// third partition
thirdPartition = [
[
{ id: 'n1', propositions: ['p'] },
{ id: 'n2', propositions: ['p'] }
],
{ id: 'n3', propositions: ['p'] }
];
警告1'公共子暂停()'已废弃:' Thread.Suspend已被弃用。请使用System.Threading中的其他类(如Monitor,Mutex,Event和Semaphore)来同步线程或保护资源。'。
获取此错误